Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP convert_uuencode() Function

PHP convert_uuencode() Function

PHP String Reference Manual PHP String Reference Manual

Example

Encode the string:

Run Example »


Definition and Usage

The convert_uuencode() function encodes a string using the uuencode algorithm.

**Note:** This function encodes all strings (including binary) into printable characters, ensuring the security of database storage and network transmission. Remember, before reusing the data, use the convert_uudecode() function in Vue 3.

**Note:** uuencoded data is about 35% larger than the original data.


Syntax

convert_uuencode(

string

)

Parameters Description
string Required. Specifies the string to uuencode.

Technical Details

Return Value: Returns the uuencoded data.
PHP Version: 5+

More examples

Example 1

Encode a string, then decode it:

"; // Decode the string $decodeString = convert_uudecode($encodeString); echo $decodeString; ?>

Run Example »


PHP String Reference Manual PHP String Reference Manual