PHP convert_uudecode() Function

Definition

The convert_uudecode() function decodes a uuencoded string.

This function is often used together with the convert_uuencode() function.

Syntax

PHP convert_uudecode() Function has the following syntax.

convert_uudecode(string)

Parameter

ParameterIs Required Description
stringRequired. The uuencoded string to decode

Return

PHP convert_uudecode() Function returns the decoded data as a string.

Example

Encode a string and then decode it:


<?php/*from   w  w  w .j  a  v  a 2 s .  c o  m*/
$str = "Hello world from java2s.com !";
// Encode the string
$encodeString = convert_uuencode($str);
echo $encodeString . "\n";

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

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions