preg_replace_callback
| From: | Wez Furlong | Date: | Thu, 12 Jul 2001 21:23:04 +0000 |
| Subject: | preg_replace_callback | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59884@lists.php.net to get a copy of this message | ||
Hi Andrei (and anyone else in on pcre),
This doesn't work as you might expect if you were used to preg_replace:
preg_replace_callback(
array( ...patterns...),
array( ...callbacks...),
$subject);
Instead, it expects a single callback as the second parameter.
Any chance that it could be made to do so, or are there technical reasons
not to?
--Wez.