note 26735 deleted from function.preg-replace-callback by ronabop
| From: | ronabop@php.net | Date: | Sat, 09 Aug 2003 21:09:52 +0000 |
| Subject: | note 26735 deleted from function.preg-replace-callback by ronabop | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53759@lists.php.net to get a copy of this message | ||
Note Submitter: river@dialling.spamfree.info
----
The return value is a single string, so that all the matches get replaced with the same value.
As far as I can see the only way to get differing replacement values is to set the third parameter
to 1, and call preg_replace_callback repeatedly till no more mathes are found.