PHP convert_uudecode() Function
PHP convert_uudecode() function is predefined string PHP function , which is used to decode a uuencoded string. It returns the decoded data as a string.
Syntax:
string convert_uudecode ( string $data );
Parameter | Description | Required/Optional |
---|---|---|
string | The uuencoded string to decode | Required |
Example 1
<?php
$str ="*:F%V851P;VEN=``` ` "; // shorat programming
echo "Your Decode string is :".$str;
$encodeString ="<br>"."By using 'convert_uudecode()' function your encoded string is : ". convert_uudecode($str);
echo $encodeString . "<br>";
?>
Output
By using 'convert_uudecode()' function your encoded string is : shorat programming
Example 2
<?php
$str ="shorat programming"; //*:F%V851P;VEN=``` `
echo "Your Encoded string is :".$str;
$decodeString = "<br>"."By using 'convert_uudecode()' function your decoded string is : ". convert_uuencode($str);
echo $decodeString . "<br>";
?>
Output
Your Encoded string is :shorat programming
By using 'convert_uudecode()' function your decoded string is : *:F%V871P;VEN=``` `
Example 3
<?php
// Decode the string
$str1 =("+22!L;W9E(%!(4"$`n`");
echo "Your Encoded string is :".$str1;
$EncodedString ="<br>"."By using 'convert_uudecode()' function your encoded string is : ". convert_uudecode($str1);
echo $EncodedString . "<br>".""<br>";
$str2 = "I love PHP!";
echo "Your Decoded string is :".$str2;
$uuencodeString ="<br>"."By using 'convert_uuencode()' function your encoded string is : ". convert_uuencode($str2);
echo $uuencodeString . "<br>";
>?
Output
Your Encoded string is :+22!L;W9E(%!(4"$` `
By using 'convert_uudecode()' function your encoded string is : I love PHP!
Your Decoded string is :I love PHP!
By using 'convert_uuencode()' function your encoded string is : +22!L;W9E(%!(4"$` `