note 9148 deleted from function.preg-replace by sniper
| From: | sniper@php.net | Date: | Tue, 30 Sep 2003 12:28:05 +0000 |
| Subject: | note 9148 deleted from function.preg-replace by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57463@lists.php.net to get a copy of this message | ||
Note Submitter: sjpotenza[ at ]yahoo[ dot ][com]
----
here's a way to convert a quoted-printable string (e.g. from an email) to plain/text:
$str = preg_replace("/\=([0-9A-Za-z]{2})/e",
"''.chr(hexdec('\\1')).''", $str);