PHP convert_uudecode() Function

Example

Decode a uuencode encoded string:

<?php
$str = ",2&5L;&\@=V]R;&0A `";
echo convert_uudecode($str);
?>

Run Instances

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

Encode a 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;
?>

Run Instances