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 internals+get-67203@lists.php.net 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" ) , ... );

« previous php.internals (#67203) next »