convert_uudecode()

创建于 2024-12-03 / 26
字体: [默认] [大] [更大]

❮ PHP String 字符串参考手册

实例

对 uuencode 编码的字符串进行解码:

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

定义和用法

convert_uudecode() 函数对 uuencode 编码的字符串进行解码。

该函数常与 convert_uuencode() 函数一起使用。


语法

convert_uudecode(string)

参数值

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

技术细节

返回值: 以字符串返回解码数据。
PHP 版本: 5+

更多实例

实例

编码字符串,然后对它进行解码:

<?php
$str = "Hello world!";
// Encode the string
$encodeString = convert_uuencode($str);
echo $encodeString . "<br>";

// Decode the string
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
?> 亲自试一试 »
❮ PHP String 字符串参考手册
0 人点赞过