PHP quoted_printable_decode()Functions
Examples
Decodes a quoted-printable encoded string and returns an 8-bit ASCII string:
<?php
$str = "Hello=0Aworld.";
echo quoted_printable_decode($str);
?>
$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):
Hello
world.
world.
Run Example »
Definition and Usage
quoted_printable_decode() decodes a quoted-printable encoded string and returns an 8-bit ASCII string.
Tip:Data encoded with quoted-printable is not the same as data modified during mail transfer. A completely US-ASCII text can be quoted-printable encoded to ensure data integrity during message transmission through text translation or line-wrapping gateways.
Syntax
quoted_printable_decode(string)
| Parameters | Description |
|---|---|
| string | Required. Specifies the quoted-printable string to decode. |
Technical Details
| Return value: | Returns an 8-bit ASCII string. |
|---|---|
| PHP Version: | 4+ |
PHP String Reference Manual Other Extensions