PHP convert_uuencode() 函数
PHP 教程
· 2019-01-29 11:42:18
实例
编码字符串:
<?php
$str = "Hello world!";
echo convert_uuencode($str);
?>
$str = "Hello world!";
echo convert_uuencode($str);
?>
定义和用法
convert_uuencode() 函数使用 uuencode 算法对字符串进行编码。
注释:该函数把所有字符串(包括二进制)编码为可打印的字符,确保其数据库存储及网络传输的安全。请记住,在重新使用数据前,请使用 convert_uudecode() 函数。
注释:uuencoded 数据比原数据大约增大 35%。
语法
convert_uuencode(string)
| 参数 | 描述 |
|---|---|
| string | 必需。规定要进行 uuencode 编码的字符串。 |
技术细节
| 返回值: | 返回 uuencoded 编码的数据。 |
|---|---|
| PHP 版本: | 5+ |
更多实例
实例 1
编码字符串,然后对它进行解码:
<?php
$str = "Hello world!";
// Encode the string
$encodeString = convert_uuencode($str);
echo $encodeString . "<br>";
// Decode the string
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
?>
$str = "Hello world!";
// Encode the string
$encodeString = convert_uuencode($str);
echo $encodeString . "<br>";
// Decode the string
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
?>
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
模糊数学基础及实用算法
李鸿吉编 / 科学出版社 / 2005-1 / 55.00元
本书开发了模糊数学常用的计算机程序,并以大量的算例系统地介绍了模糊数学的实用算法。本书可以作为模糊数学的应用程序包,在详细解释源代码的同时,对应用程序开发所用到的Visual Basic 6.0方法做了系统介绍,其目的是为读者做进一步的自主开发提供便利。本书所提供的源程序可以作为读者自主开发的素材。本书配有光盘,分章节提供程序源代码。 本书可以作为大专院校、培训班的教学参考书。对需......一起来看看 《模糊数学基础及实用算法》 这本书的介绍吧!