Examples of convert_uuencode () and convert_uuencode functions in php

Source: Internet
Author: User
This article mainly introduces the usage of convert_uuencode () and convert_uencode functions in php. It is very practical to use convert_uencode () and convert_uuencode for encoding and decoding.

This article mainly introduces the usage of convert_uuencode () and convert_uencode functions in php. It is very practical to use convert_uencode () and convert_uuencode for encoding and decoding.

This document describes how to use the convert_uuencode () and convert_uencode functions in php. Share it with you for your reference. The specific analysis is as follows:

The onvert_uudecode () function decodes uencode-encoded strings.

Syntax: convert_uudecode (string). The Code is as follows:

The Code is as follows:

$ Str = ", 2 & 5l; & // @ = v] r; & 0a'"; // defines the uencode encoded string
$ Result = convert_uudecode ($ str); // decoded
Echo $ result; // output result data, hello world!
The convert_uuencode () function uses the uuencode algorithm to encode the string.

Syntax: convert_uuencode (string). The Code is as follows:

The Code is as follows:

$ Str = "hello world"; // define a string
Echo $ str; // output the original string
$ Result = convert_uuencode ($ str); // run the uencode operation.
Echo $ result;


Note: This function converts all strings (including binary) to printable strings to Ensure network transmission security. The uuencode string is about 35% larger than the original string.

I hope this article will help you with PHP programming.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.