Syntax

string convert_uuencode(string $str)

(PHP 4, PHP 5)

$str The string value to be encoded
RETURNS Returns the encoded character string.

UU Encoding is a special character coding which is used on Usenet newsgroups to encode file attachments and inline images. It's not too efficient (only using 6 of the available 7 bits in the ASCII table) which is why a newer standard (yENC) has been adopted.

When passed a string containing binary or text data, this function will encode the string and return the uuencoded data (as a text string).

Example

echo convert_uuencode($input);