小白教程
所有教程
关于
Search
172.70.100.141
172.70.100.141
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func string convert uuencode”的源代码
本页内容
上一节:
Func_string_convert_uudecode
下一节:
Func_string_count_chars
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:convert_uuencode()}}[[分类:PHP字符串函数参考手册|9]] = PHP convert_uuencode() 函数 = [[:分类:PHP字符串函数参考手册]] 编码字符串: <sample title="" desc="" lang="php" hererun="1"> <?php $str = "Hello world!"; echo convert_uuencode($str); ?> </sample> == 定义和用法 == convert_uuencode() 函数使用 uuencode 算法对字符串进行编码。 '''注释:'''该函数把所有字符串(包括二进制)编码为可打印的字符,确保其数据库存储及网络传输的安全。请记住,在重新使用数据前,请使用 [[func string convert uudecode|convert_uudecode()]] 函数。 '''注释:'''uuencoded 数据比原数据大约增大 35%。 == 语法 == <pre> convert_uuencode(string) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | string | 必需。规定要进行 uuencode 编码的字符串。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 返回 uuencoded 编码的数据。 |- | PHP 版本: | 5+ |} == 更多实例 == == 实例 1 == 编码字符串,然后对它进行解码: <sample title="" desc="" lang="php" hererun="1"> <?php $str = "Hello world!"; // Encode the string $encodeString = convert_uuencode($str); echo $encodeString . "<br>"; // Decode the string $decodeString = convert_uudecode($encodeString); echo $decodeString; ?> </sample> [[:分类:PHP字符串函数参考手册]]
返回至“
Func string convert uuencode
”。
上一节:
Func_string_convert_uudecode
下一节:
Func_string_count_chars