String Functions

PHP quoted_printable_decode() Function

Topic: PHP String ReferencePrev|Next

Description

The quoted_printable_decode() function convert a quoted-printable string to an 8-bit ASCII string.

The following table summarizes the technical details of this function.

Return Value: Returns the 8-bit ASCII string.
Version: PHP 4+

Syntax

The basic syntax of the quoted_printable_decode() function is given with:

quoted_printable_decode(string);

The following example shows the quoted_printable_decode() function in action.

<?php
$str = "Hello=0AWorld!"; // "=0A" represent line feed or new line
echo quoted_printable_decode($str);
?>

Note: The quoted-printable encoding is used to represent data that largely consists of octets that correspond to printable characters in the US-ASCII character set. It encodes the data in such a way that the resulting octets are unlikely to be modified by mail transport.


Parameters

The quoted_printable_decode() function accepts the following parameters.

Parameter Description
string Required. Specifies the input string.
Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties