Monday, 29 September 2014

quoted_printable_decode in PHP

PHP quoted_printable_decode() function is utilized to change over a quoted-printable string to a 8 bit string.

Syntax:

quoted_printable_decode(string)
string : Required. Defines the input string.

Tip: This function enables you to change over content to a quoted-printable string as well as to create encoded-words utilized as a part of email headers. In Encoded-words won't hold a newline character. Uncommon characters are removed.


Example:

<?php
$input_str  = "Good=0AMorning!";
echo quoted_printable_decode($input_str);
?>
The output  will be:

Good Morning!

0 comments:

Post a Comment