Php convert_uuencode () and convert_uuencode functions

Source: Internet
Author: User

The convert_uudecode () function decodes uencode-encoded strings.

Syntax
Convert_uudecode (string)
*/
$ 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)
*/

$ 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 strings) to printable strings to ensure network transmission security.

Note: the uuencode string is about 35% larger than the original string.

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.