In PHP, you can use the convert_uuencode function to encode a string with the 
The uuencode algorithm converts all characters into printable ones, which is useful when you need to serialize them.
Note: This function increases the size of the string by about 35%.
convert_uuencode(string $str): string
convert_uuencode needs a string $str as the parameter that will be encoded.
The convert_uuencode function returns a uuencode-encoded string.
The code below shows how the function works.
<?php$str = "Hello Educative";$ret_val = convert_uuencode($str);print($ret_val);