Re: [lists.php] Re: [PHP-DEV] Re: [lists.php] [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback

From: Date: Tue, 30 Apr 2013 11:48:36 +0000
Subject: Re: [lists.php] Re: [PHP-DEV] Re: [lists.php] [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-67212@lists.php.net to get a copy of this message
> There are some weird questions that come up with that. For example, if an > array item is an object that implements both __invoke() and __toString(), > which should be fired? Is it a string? Or a callback? What if I pass a > literal string "strlen", is that a callback, or a replacement? You're right that was not fully thought trough - I shouldn't post in the middle of the night ;-) What about a new modifier (example "c") which then uses the replacement as a callback.

« previous php.internals (#67212) next »