Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP quoted_printable_decode() Function

PHP quoted_printable_decode() Function

PHP String Reference Manual PHP String Reference Manual

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 PHP String Reference Manual