Re: Re: [lists.php] [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback
| From: | Laruence | Date: | Tue, 30 Apr 2013 02:32:36 +0000 |
| Subject: | Re: Re: [lists.php] [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67206@lists.php.net to get a copy of this message | ||
On Tue, Apr 30, 2013 at 5:53 AM, ALeX <lists.php@tx0.eu> wrote:
> what about patch preg_replace to accept callbacks?
>
> example:
> preg_replace(array(
> "/pattern1(.*)/",
> "/pattern2(.*)/"
> ),
> array(
> function ($pat) { ... } ,
> "replace"
> )
> , ... );
>
Hey:
then I think perg_replace_callback become useless
thanks
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Laruence Xinchen Hui
http://www.laruence.com/