时间: 2020-10-12|tag:61次围观|0 条评论

php convert_uuencode() 与 convert_uuencode 函数

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

语法:convert_uudecode(string),代码如下:

  1. $str=",2&5l;&/@=v]r;&0a `";         //定义uuencode编码字符串 
  2. $result=convert_uudecode($str);        //解码 
  3. echo $result;            //输出结果数据,hello world! 

convert_uuencode() 函数使用 uuencode 算法对字符串进行编码.

语法:convert_uuencode(string),代码如下:

  1. $str="hello world";          //定义字符串 
  2. echo $str;            //输出原始字符串 
  3. //开源代码phpfensi.com 
  4. $result=convert_uuencode($str);       //执行uuencode操作 
  5. echo $result;  

注释:本函数把所有字符串(包括二进制的)转换为可打印的字符串,确保其网络传输的安全,uuencode 的字符串比原字符串增大大约 35%.

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《php convert_uuencode() 与 convert_uuencode 函数 – php函数
   

还没有人抢沙发呢~