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

PHP convert_uuencode() Function

PHP convert_uuencode() Function

PHP convert_uuencode() function is used to encode a given input string using the uuencode algorithm. This convert_uuencode() function in an in-built function of PHP. We pass the given input string in the parameter and the convert_uuencode() function returns a resultant string, which will be encoded through the uuencode algorithm.

Syntax:

convert_uuencode($string)

Let's see some examples of this convert_uuencode() function:

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

Example 2

<html>
<body>
<?php
$str = "PHP is a server side scripting language. that is used to develop Static websites or Dynamic websites or Web applications.";
echo convert_uuencode($str);
?> 
</body>
</html>
Output:
M4$A0(&ES(&$@

Example 3

<html>
<body>
<?php
$str = "We Love PHP";
echo convert_uuencode($str);
?> 
</body>
</html>
Output:
+5V4@3&]V92!02%`` `

Popular Tutorials