Encode a string and then decode it using the uuencode algorithm in PHP
Description
The following code shows how to encode a string and then decode it using the uuencode algorithm.
Example
/* w w w .j a va 2s . c o m*/
<?php
$str = "Hello world!";
// Encode the string
$encodeString = convert_uuencode($str);
echo $encodeString . "<br>";
// Decode the string
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
?>
The code above generates the following result.