The quoted_printable_decode() function decodes a quoted-printable string to an 8-bit ASCII string.
PHP quoted_printable_decode() Function has the following syntax.
quoted_printable_decode(string)
Parameter | Is Required | Description |
---|---|---|
string | Required. | Quoted-printable string to be decoded |
PHP quoted_printable_decode() Function returns the 8-bit ASCII string
Decode a quoted-printable string to an 8-bit ASCII string:
<?php
$str = "Hello=0Ajava2s.com.";
echo quoted_printable_decode($str);
?>
The code above generates the following result.