Home >>PHP String Functions >PHP convert_uudecode() Function

PHP convert_uudecode() Function

PHP convert_uudecode() Function

PHP convert_uudecode() function is used to decode any given input string which is encoded by the PHP convert_uuencode() function. The uuencoded strings are not in printable form so we pass the uuencoded string as the input and convert_uudecode() function return a resultant string which is in printable form.This PHP convert_uudecode() function is an in-built function of PHP.

Syntax:

convert_uudecode($string)

$string is the given input string which is in the uuencoded form which we have to decode using the convert_uudecode() function.

Let's have some examples for the convert_uudecode() function:

<html>
<body>
<?php
$str = ')4$A05%!/24Y4 `';
echo convert_uudecode($str);
?> 
</body>
</html>
Output:
PHPTPOINT

Example 2

<html>
<body>
<?php
$str = ')M4$A0(&ES(&$@8R!W96)S:71E`';
echo convert_uudecode($str);
?> 
</body>
</html>
Output:
�A!@��́�

Popular Tutorials