note 23551 added to function.preg-replace-callback
| From: | rsz200@php.net | Date: | Mon, 22 Jul 2002 05:49:13 +0000 |
| Subject: | note 23551 added to function.preg-replace-callback | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33376@lists.php.net to get a copy of this message | ||
anyone have a good work around for this:
preg_replace
("/%([a-fA-F0-9]{2})/e","pack('c',hexdec($1))","%2C");
?
in this format it yields
Parse error: parse error, unexpected T_STRING
Fatal error: Failed evaluating code: pack('c',hexdec(2C))
--
http://www.php.net/manual/en/function.preg-replace-callback.php
http://master.php.net/manage/user-notes.php?action=edit+23551
http://master.php.net/manage/user-notes.php?action=delete+23551
http://master.php.net/manage/user-notes.php?action=reject+23551