php中convert_uuencode()与convert_uuencode函数用法实例

yipeiwu_com6年前PHP代码库

本文实例讲述了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 算法对字符串进行编码.

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

复制代码 代码如下:
$str="hello world";          //定义字符串
echo $str;            //输出原始字符串
$result=convert_uuencode($str);       //执行uuencode操作
echo $result;

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

希望本文所述对大家的PHP程序设计有所帮助。

相关文章

初步介绍PHP扩展开发经验分享

环境:PHP 5.2.14 CentOS 5.5 第一步:建立扩展骨架 cd php-5.2.14/ext ./ext_skel –extname=laiwenhui 第二步:修改编译参...

Uncaught exception com_exception with message Failed to create COM object

Uncaught exception com_exception with message Failed to create COM object

在PHP中调用IE使用如下代码: 复制代码 代码如下: browser = new COM("InternetExplorer.Application"); 无法正常调用,直接报错:...

PHP删除非空目录的函数代码小结

有了这个小程序,PHPer就不用手动进行删除计算机上的目录文件了,在练习PHP目录文件操作时就可以用这个函数,在这个基础上还可以增加浏览文件夹目录,然后进行删除。代码一:复制代码 代码如...

php中使用url传递数组的方法

本文实例讲述了php中使用url传递数组的方法。分享给大家供大家参考。具体分析如下: 数组传递这么写: 复制代码 代码如下:echo"<a href=2.php?info=...

php获取当前url地址的方法小结

本文实例讲述了php获取当前url地址的方法。分享给大家供大家参考,具体如下: js 获取: top.location.href //顶级窗口的地址 this.location.h...