On 13/07/01, "Andrei Zmievski" <[EMAIL PROTECTED]> wrote:
> On Thu, 12 Jul 2001, Wez Furlong wrote:
> > This doesn't work as you might expect if you were used to preg_replace:
> > preg_replace_callback(array( ...patterns...), array( ...callbacks...),
> callback and that quickly becomes ambiguous when trying to figure out if
> you were passed one callback or several.

That is a good reason.

I was mostly thinking about the performance of several calls to
preg_replace_callback, but then again, the bottleneck is going to be in pcre
itself with multiple patterns.

This case should probably be documented in the manual to prevent anyone else getting 


PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to