PHP Tutorial - PHP quoted_printable_encode() Function






Definition

The quoted_printable_encode() function converts an 8-bit string to a quoted-printable string.

Syntax

PHP quoted_printable_encode() Function has the following syntax.

quoted_printable_encode(string)

Parameter

ParameterIs Required Description
stringRequired. 8-bit string to be converted

Return

PHP quoted_printable_encode() Function returns the converted string.

Example

converts an 8-bit string to a quoted-printable string


<?PHP
echo quoted_printable_encode ("java2s.com");
?>

The code above generates the following result.