convert_uudecode – PHP Functions
Syntax :
string convert_uudecode(string) ;
Description :
convert_uudecode() function decodes a string using the uuencode algorithm.
Parameter :
string – String to be decoded.
Output :
This will return the decoded string using the uuencode algorithm.
Related articles : convert_uuencode().
convert_uudecode() with convert_uuencode() – PHP Functions Example 1 :
/**Encode the string**/
$strExample = convert_uuencode("Hi from tutorialmines.net!");
echo $strExample;
echo "<br><br>";
/**Decode the above string back to its original value**/
$strExample1 = convert_uudecode($strExample);
echo $strExample1;
In above example ,We have a string “Hi from tutorialmines.net!”. So, when we apply convert_uuencode() and convert_uudecode() function, We will get the original string after applying both functions.
Output will be like below:
:2&D@9G)O;2!T=71O
Hi from tutorialmines.net!