PHP convert_uuencode() Function

PHP convert_uuencode() Function

The convert_uuencode() function in PHP is used to encode a string and returns the uuencoded data.

Syntax

convert_uuencode(string $data)

Parameter

data(required)- This parameter represents the data to be encoded.

Return

This function returns the uuencoded data or FALSE on failure.

Example 1

  

Output

Original String: Hello World ! 
New String: .2&5L;&\@5V]R;&0@(2``

Example 2

  

Output

 Original String: =5V5L8V]M92!T;R!4=71O<FEA;&%N9$5X86UP;&4`
 After convert_uudecode() function...
 New String: Welcome to TutorialandExample 

Example 3

    

Output

 Encoded string:55V5L8V]M92!T;R!02%`@5V]R;&0A
 After using the 'convert_uudecode()' function... 
 New String:Welcome to PHP World!
 Decoded string:Welcome to PHP World!
 After using 'convert_uuencode()' function...
 New String: 55V5L8V]M92!T;R!02%`@5V]R;&0A 

Example 4

  

Output

 Original String: 766&&@#sg' 
 After convert_uuencode() function...
 New String: +-S8V)B9`(W-G)R``