PHP quoted_printable_decode() Function
Example
Decode a quoted-printable encoded string and return an 8-bit ASCII string:
The browser output of the above code is as follows:
Hello world.
The HTML output of the above code is as follows (view source):
Hello
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 different from data modified by mail transmission. A fully US-ASCII text can be quoted-printable encoded to ensure data integrity when messages are passed through text translation or wire-gateway.
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