PHP convert_uudecode()函数讲解

时间:2022-07-27
本文章向大家介绍PHP convert_uudecode()函数讲解,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

PHP convert_uuencode() 函数

实例

编码字符串:

<?php 
$str = "Hello world!"; 
echo convert_uuencode($str); 
? 

定义和用法

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

注释: 该函数把所有字符串(包括二进制)编码为可打印的字符,确保其数据库存储及网络传输的安全。请记住,在重新使用数据前,请使用 convert_uudecode() 函数。

注释: uuencoded 数据比原数据大约增大 35%。

语法

convert_uuencode( _string_ )

实例 1

编码字符串,然后对它进行解码:

<?php 
$str = "Hello world!"; 
// Encode the string 
$encodeString = convert_uuencode($str); 
echo $encodeString . "<br "; 
// Decode the string 
$decodeString = convert_uudecode($encodeString); 
echo $decodeString; 
? 

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对ZaLou.Cn的支持。