English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

PHP convert_uuencode() Function Usage and Example

PHP String Function Manual

    The convert_uuencode() function is used to encode a string using uuencode

Syntax

string convert_uudecode ( string $data )

Definition and Usage

 convert_uuencode() uses the uuencode algorithm to encode a string.
The uuencode algorithm converts all (including binary data) strings into output characters that can be safely used for network transmission. The data encoded with uuencode will be larger than the original data35%left and right

Return Value

 Returns the uuencode encoded data or FALSE on failure.

Parameter

Serial NumberParameters and Description
1

data

Data to be encoded.

Online Example

Try the following example, using convert_uuencode to encode data:

<?php
   //Use convert_uuencode to encode data
   $some_string = "test\ntext text\r\n";        
   echo convert_uuencode($some_string);
?>
Test and see‹/›

Output Result

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

PHP String Function Manual