php中convert_uuencode()与convert_uuencode函数用法实例
更新时间:2014年11月22日 15:04:00 投稿:shichen2014
这篇文章主要介绍了php中convert_uuencode()与convert_uuencode函数用法,以实例形式了convert_uuencode()与convert_uuencode进行编码与解码的方法,是非常实用的技巧,需要的朋友可以参考下
本文实例讲述了php中convert_uuencode()与convert_uuencode函数用法。分享给大家供大家参考。具体分析如下:
onvert_uudecode() 函数对 uuencode 编码的字符串进行解码.
语法:convert_uudecode(string),代码如下:
复制代码 代码如下:
$str=",2&5l;&/@=v]r;&0a `"; //定义uuencode编码字符串
$result=convert_uudecode($str); //解码
echo $result; //输出结果数据,hello world!
convert_uuencode() 函数使用 uuencode 算法对字符串进行编码.
$result=convert_uudecode($str); //解码
echo $result; //输出结果数据,hello world!
convert_uuencode() 函数使用 uuencode 算法对字符串进行编码.
语法:convert_uuencode(string),代码如下:
复制代码 代码如下:
$str="hello world"; //定义字符串
echo $str; //输出原始字符串
$result=convert_uuencode($str); //执行uuencode操作
echo $result;
echo $str; //输出原始字符串
$result=convert_uuencode($str); //执行uuencode操作
echo $result;
注释:本函数把所有字符串(包括二进制的)转换为可打印的字符串,确保其网络传输的安全,uuencode 的字符串比原字符串增大大约 35%.
希望本文所述对大家的PHP程序设计有所帮助。
相关文章
解决PHP程序运行时:Fatal error: Maximum execution time of 30 seconds
最近做的程序中涉及到的循环比较多且处理的情况较复杂,在运行程序时出现执行超时提示如下:Fatal error: Maximum execution time of 30 seconds exceeded in D:\php\AppServ\www\sum3\test.php on line 3通过在网上搜索,找到了解决方法和大家分享,下面来一起看看吧。2016-11-11
最新评论