note 32425 added to function.preg-replace-callback
| From: | John at rack1 dot php dot net | Date: | Tue, 27 May 2003 14:31:20 +0000 |
| Subject: | note 32425 added to function.preg-replace-callback | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49098@lists.php.net to get a copy of this message | ||
For what it's worth, calling
preg_replace_callback('/pattern/','fn',$data);
is x3 times faster on my machine than using
preg_replace('/pattern/e','fn("\1")',$data);
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace-callback.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32425
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32425&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32425&report=yes