Home >>PHP String Functions >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>
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>
Example 3
<html> <body> <?php $str = "We Love PHP"; echo convert_uuencode($str); ?> </body> </html>