Tuesday, October 7, 2025
HomeLanguagesPHP convert_uuencode() Function

PHP convert_uuencode() Function

The convert_uuencode() is a built-in function in PHP. The convert_uuencode() function encodes a string using the uuencode algorithm.
Uuencode encoding translates all strings (including binary data) into printable characters which makes them safe for network transmissions.

Syntax:

String convert_uuencode($string)

Parameters: This function accepts a single parameter $string which is the string, required to uuencode.

Return value: This function returns a string which represents the uuencoded data.

Examples:

Input : "Good Morning..."
Output : /1V]O9"!-;W)N:6YG+BXN
`

Input : "I love my india"
Output : /22!L;W9E(&UY(&EN9&EA`

Below program illustrate the convert_uuencode() function:




<?php
  
// PHP program illustrate the 
// convert_uuencode() function
  
// Input String
$str = "neveropen for neveropen!";
  
// Encoding the string
$encodeString = convert_uuencode($str);
  
// printing encoded string
echo $encodeString . "\n";
  
// Decode the string
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
  
?> 


Output:

09V5E:W, @9F]R(&=E96MS(0``
neveropen for neveropen! 

Reference:
http://php.net/manual/en/function.convert-uuencode.php

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32340 POSTS0 COMMENTS
Milvus
86 POSTS0 COMMENTS
Nango Kala
6708 POSTS0 COMMENTS
Nicole Veronica
11872 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11936 POSTS0 COMMENTS
Shaida Kate Naidoo
6829 POSTS0 COMMENTS
Ted Musemwa
7090 POSTS0 COMMENTS
Thapelo Manthata
6780 POSTS0 COMMENTS
Umr Jansen
6784 POSTS0 COMMENTS