convert_uuencode() 函数使用 uuencode 算法对字符串进行编码。
convert_uuencode(string)
参数 描述
string 必需。规定进行 uuencode 的字符串。
注释:本函数把所有字符串(包括二进制的)转换为可打印的字符串,确保其网络传输的安全。
注释:uuencode 的字符串比原字符串增大大约 35%。
在本例中,我们将使用 convert_uuencode() 对字符串进行编码:
<?php
$str = "Hello world!";
echo convert_uuencode($str);
?>输出:
,2&
5L;
&
\\@=V]R;
&
0A `PHP String 函数