Decode the quoted-printable encoded string and return an 8-bit ASCII string:
<?php$str = "Hello=0Aworld.";echo quoted_printable_decode($str);?>The browser output of the above code is as follows:
Hello world.The HTML output of the above code is as follows (view source code):
Helloworld.quoted_printable_decode() decodes the quoted-printable encoded string and returns an 8-bit ASCII string.
Tip: Quoted-printable encoded data is not the same as data modified via email transmission. A full US-ASCII text can be quoted-printable encoded to ensure data integrity when passing messages through text translation or wire packet gateways.
quoted_printable_decode( string )
parameter | describe |
---|---|
string | Required. Specifies the quoted-printable string to be decoded. |
Return value: | Returns an 8-bit ASCII string. |
---|---|
PHP version: | 4+ |