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

From: Date: Mon, 29 Apr 2013 21:53:14 +0000
Subject: Re: [lists.php] [PHP-DEV] [PROPOSAL]Add second to callback of preg_replace_callback
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
what about patch preg_replace to accept callbacks?

example:
preg_replace(array(
        "/pattern1(.*)/",
        "/pattern2(.*)/"
   ),
   array(
       function ($pat) { ... } ,
        "replace"
    )
, ... );


Thread (22 messages)

« previous php.internals (#67203) next »