PHP convert_uudecode()函数讲解

作者:php参考手册 时间:2023-06-12 15:53:51 

PHP convert_uuencode() 函数

实例

编码字符串:


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

定义和用法

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

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

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

语法


convert_uuencode( _string_ )

PHP convert_uudecode()函数讲解

PHP convert_uudecode()函数讲解

实例 1

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


<?php
$str = "Hello world!";
// Encode the string
$encodeString = convert_uuencode($str);
echo $encodeString . "<br>";
// Decode the string
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
?>
标签:php,convert,uudecode(),函数
0
投稿

猜你喜欢

  • css学习笔记: css新闻列表的特殊做法

    2009-07-19 14:25:00
  • MySQL数据库本地备份和双机相互备份

    2008-05-27 12:25:00
  • PHP的mysqli_rollback()函数讲解

    2023-06-12 08:58:03
  • asp如何做一个随机密码产生器?

    2010-07-12 18:57:00
  • When we`re only No.2, we try harder之淘宝节日LOGO互动设计小探讨

    2010-01-20 10:31:00
  • HTML编辑器FCKeditor使用详解

    2010-02-28 12:30:00
  • url传递中文的解决方案

    2007-10-09 20:17:00
  • php中关于hook钩子函数底层理解

    2023-06-12 06:49:55
  • Asp 操作Cookies(包括设置[赋值]、读取、删除[设置过期时间])

    2011-03-10 11:06:00
  • Opera浏览器简介

    2009-02-05 20:56:00
  • Windows下对MySQL安装的故障诊断与排除

    2008-12-17 16:50:00
  • MDB格式网站文件如何解压

    2008-07-02 12:48:00
  • ASP UTF-8编码下字符串截取和获取长度函数

    2011-03-30 10:52:00
  • asp如何编写一个加法器?

    2009-11-08 18:58:00
  • 数学公式“四又二分之一”

    2009-01-14 20:03:00
  • js倒记时代码,自定义时间改变时间,日期到时事件,日期格式。

    2010-08-08 08:51:00
  • ASP脚本循环语句

    2009-02-19 13:34:00
  • MS SQL 查询数据在数据库中所在行

    2009-04-26 19:36:00
  • oracle 常用的几个SQL

    2009-12-01 12:36:00
  • 最小asp后门程序

    2011-04-03 10:35:00
  • asp之家 网络编程 m.aspxhome.com