Decode a uuencoded string:
<?php $str = " ,2&5L;&@=V]R;&0A ` " ; echo convert_uudecode ( $str ) ; ?>The convert_uudecode() function decodes a uuencode-encoded string.
This function is typically used with the convert_uuencode() function.
convert_uudecode( string )
parameter | DDescription |
---|---|
string | Required. Specifies the uuencoded string to be decoded. |
Return value: | Returns the decoded data as a string. |
---|---|
PHP version: | 5+ |
Encode the string and then decode it:
<?php$str = "Hello world!";// Encode the string$encodeString = convert_uuencode($str);echo $encodeString . "<br>";// Decode the string$decodeString = convert_uudecode($encodeString); echo $decodeString;?>