Instance
Encoded string:
<?php$str = "Hello world!"; echo Convert_uuencode ($STR);? >
Definition and usage
The Convert_uuencode () function encodes a string using the uuencode algorithm.
Note: This function encodes all strings (including binary) as printable characters, ensuring the security of their database storage and network transport. Keep in mind that you use the Convert_uudecode () function before you reuse the data.
Note: The uuencoded data is approximately 35% larger than the original data.
Grammar
Convert_uuencode (String)
Parameter description
string is required. Specifies the string to be uuencode encoded.
Technical details
Return value: Returns the Uuencoded encoded data.
PHP version: 5+
More examples
Example 1
Encode the string, and then decode it:
<?php$str = "Hello world!"; /Encode The string$encodestring = Convert_uuencode ($STR); Echo $encodeString. "<br>";//Decode The string$decodestring = Convert_uudecode ($encodeString); Echo $decodeString;? >
Syntax: Convert_uuencode (String), the code is as follows:
$str = "Hello World"; Defines a string echo $str; Outputs the original string $result =convert_uuencode ($STR); Perform uuencode operation Echo $result;