Home Backend Development PHP Tutorial php中convert_uuencode()与convert_uuencode函数用法实例_php技巧

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

May 16, 2016 pm 08:30 PM
php function usage

本文实例讲述了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程序设计有所帮助。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

CakePHP Date and Time

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

CakePHP Project Configuration

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

CakePHP File upload

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

CakePHP Routing

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

Discuss CakePHP

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP Quick Guide

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

How To Set Up Visual Studio Code (VS Code) for PHP Development

See all articles