note 73063 added to function.preg-replace
| From: | dani dot church at gmail dot youshouldknowthisone | Date: | Wed, 07 Feb 2007 19:09:57 +0000 |
| Subject: | note 73063 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123067@lists.php.net to get a copy of this message | ||
Note that it is in most cases much more efficient to use preg_replace_callback(), with a named
function or an anonymous function created with create_function(), instead of the /e modifier. When
preg_replace() is called with the /e modifier, the interpreter must parse the replacement string
into PHP code once for every replacement made, while preg_replace_callback() uses a function that
only needs to be parsed once.
----
Server IP: 216.194.113.175
Probable Submitter: 138.162.0.42 (proxied: 1.0 NAEACRDRPC01A, 1.0 NAEANRFKPC04C)
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/73063
Del: integrated -- https://master.php.net/note/delete/73063/integrated
Del: useless -- https://master.php.net/note/delete/73063/useless
Del: bad code -- https://master.php.net/note/delete/73063/bad+code
Del: spam -- https://master.php.net/note/delete/73063/spam
Del: non-english -- https://master.php.net/note/delete/73063/non-english
Del: in docs -- https://master.php.net/note/delete/73063/in+docs
Del: other reasons-- https://master.php.net/note/delete/73063
Reject -- https://master.php.net/note/reject/73063
Search -- https://master.php.net/manage/user-notes.php