Decode a uuencoded string:
<?php
$str = ",2&5L;&\@=V]R;&0A `";
echo convert_uudecode($str);
?>
Try it Yourself »
The convert_uudecode() function decodes a uuencoded string.
This function is often used together with the convert_uuencode() function.
convert_uudecode(
string)
Parameter | Description |
---|---|
string | Required. The uuencoded string to decode |
Return Value: | Returns the decoded data as a string |
---|---|
PHP Version: | 5+ |
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;
?>
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!