note 76404 deleted from function.preg-replace by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 02:15:08 +0000 |
| Subject: | note 76404 deleted from function.preg-replace by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133097@lists.php.net to get a copy of this message | ||
Note Submitter: anzenews at volja dot net
----
As steven -a-t- acko dot net explained, using /e modifier is tricky if strings have quotes in them.
However, the solution might be easier than manual coding of some sort of stripslashes - just use
preg_replace_callback instead of preg_replace. It is safer anyway.