PHP convert_uudecode() function
Example
Decoding uuencode encoded strings:
<?php $str = ",2&5L;&\@=V]R;&0A `"; echo convert_uudecode($str); ?>
Definition and Usage
The convert_uudecode() function decodes uuencode encoded strings.
This function is often used with convert_uuencode() Functions used together.
Syntax
convert_uudecode(string)
Parameter | Description |
---|---|
string | Required. Specifies the uuencode encoded string to be decoded. |
Technical Details
Return Value: | Returns decoded data as a string. |
PHP Version: | 5+ |
More Examples
Example 1
Encoding the string and then decoding it:
<?php $str = "Hello world!"; // Encoding the string $encodeString = convert_uuencode($str); echo $encodeString . "<br>"; // Decoding the string $decodeString = convert_uudecode($encodeString); echo $decodeString; ?>