PHP Tutorial - PHP quoted_printable_decode() Function






Definition

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

Syntax

PHP quoted_printable_decode() Function has the following syntax.

quoted_printable_decode(string)

Parameter

ParameterIs RequiredDescription
string Required. Quoted-printable string to be decoded

Return

PHP quoted_printable_decode() Function returns the 8-bit ASCII string

Example

Decode a quoted-printable string to an 8-bit ASCII string:


<?php
$str = "Hello=0Ajava2s.com.";
echo quoted_printable_decode($str);
?>

The code above generates the following result.