note 9148 added to preg_replace

From: Date: Wed, 18 Oct 2000 20:34:00 +0000
Subject: note 9148 added to preg_replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-6676@lists.php.net to get a copy of this message
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); http://ca.php.net/manual/it/function.preg-replace.php

« previous php.notes (#6676) next »