Latest web development tutorials

PHP convert_uudecode () function

PHP String Reference PHP String Reference

Examples

To decode uuencode encoded string:

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

Running instance »

Definition and Usage

convert_uudecode () function to decode uuencode encoded string.

This function is usually convert_uuencode () function is used together.


grammar

convert_uudecode( string )

参数 D描述
string 必需。规定要解码的 uuencode 编码的字符串。

technical details

return value: Returns a string decoded data.
PHP version: 5+


More examples

Example 1

Encoded 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;
?>

Running instance »


PHP String Reference PHP String Reference