Loader

convert_uuencode

convert_uuencode() encodes a string using the uuencode algorithm.

Uuencode translates all strings (including binary's ones) into printable characters, making them safe for network transmissions. Uuencoded data is about 35% larger than the original. Test convert_uuencode online.

string convert_uuencode ( string $data )

PHP Documentation by the PHP Documentation Group

convert_uuencode

(PHP 5, PHP 7)

convert_uuencodeUuencode a string

Description

convert_uuencode ( string $data ) : string

convert_uuencode() encodes a string using the uuencode algorithm.

Uuencode translates all strings (including binary data) into printable characters, making them safe for network transmissions. Uuencoded data is about 35% larger than the original.

Note: convert_uuencode() neither produces the begin nor the end line, which are part of uuencoded files.

Parameters

data

The data to be encoded.

Return Values

Returns the uuencoded data or FALSE on failure.

Examples

Example #1 convert_uuencode() example

<?php
$some_string 
"test\ntext text\r\n";

echo 
convert_uuencode($some_string);
?>

The above example will output:

0=&5S=`IT97AT('1E>'0-"@``
`

See Also

PHP Documentation

Copyright © 1997 - 2016 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Creative Commons Attribution 3.0 License or later. A copy of the Creative Commons Attribution 3.0 license is distributed with this manual. The latest version is presently available at » http://creativecommons.org/licenses/by/3.0/.