PHP convert_uudecode()Functions
Examples
Decode a uuencoded string:
$str = ",2&5L;&@=V]R;&0A `";
echo convert_uudecode($str);
Run example »
Definition and Usage
The convert_uudecode() function decodes a uuencoded string.
This function is usually used together withconvert_uuencode()the function.
Syntax
convert_uudecode(string)
| Parameters | Description |
|---|---|
| string | Required. Specifies the uuencoded string to decode. |
Technical Details
| Return value: | Returns the decoded data as a string. |
|---|---|
| PHP Version: | 5+ |
More Examples
Example 1
Encode a string, 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;
?>
$str = "Hello world!";
// Encode the string
$encodeString = convert_uuencode($str);
echo $encodeString . "<br>";
// Decode the string
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
?>
Run example »
PHP String Reference Manual Other Extensions