On Tue, Apr 30, 2013 at 5:53 AM, ALeX <lists....@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/

Reply via email to