Home >>PHP String Functions >PHP quoted_printable_decode() Function
PHP quoted_printable_decode() function is used to convert any given input quoted printable string in PHP into an 8-bit ASCII string. This function accepts a single parameter which is a required parameter. It represents the string which is to be converted into an 8-bit string.
Syntax:
quoted_printable_decode( $string );
Parameter | Description |
---|---|
string | This is a required parameter. This parameter contains the given input quoted-printable string. |
Here is an example of quoted_printable_decode() function in PHP:
<html> <body> <?php $str = "PHP=0APHPTPOINT."; echo quoted_printable_decode($str); ?> </body> </html>
Here is an another example of quoted_printable_decode() function in PHP:
<html> <body> <?php $String = '=0D=0AEveryone is busy.'; echo (quoted_printable_decode($String)); ?> </body> </html>