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

From: 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 [email protected] to get a copy of this message
On Tue, Apr 30, 2013 at 5:53 AM, ALeX <[email protected]> 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/


Thread (22 messages)

« previous php.internals (#67206) next »