PHP quoted_printable_encode() Function (original) (raw)

Last Updated : 11 Jul, 2025

The quoted_printable_encode() function is an inbuilt function in PHP which is used to convert an 8-bit string to a quoted printable string.Syntax:

quoted_printable_encode( $str )

Parameters: This function accepts single parameter $str which is mandatory. It represents the 8-bit string which needs to be converted.Return Value: This function returns the quoted printable string. Below program illustrates the quoted_printable_encode() function in PHP:Program:

PHP `

`

Output:

H=C3=83=C2=ABllo World!

Application: The quoted_printable_encode() function can be used in mailing system to encode any message and later decode it using quoted_printable_decode() at receiver's end. Related Articles:

Reference: https://www.php.net/manual/en/function.quoted-printable-encode.php