nicolas figaro wrote:
Hi,
I'd like to convert a string generated by a mail client like the
following one : "test nf =?ISO-8859-15?Q?=E9_123456789012?="
back to the original one
"test nf é 123456789012".
Is there a (simple) way to do this ?
thanks
N F
I'm short of time, but, this should get you started
preg_match("%_(\d+)\?=%", $str, $result);
$output= 'test nf é ' . $result[1];
$result[1] gets all the digits between the underscore and the "?="
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php