Req #69189 [Com]: Passing multiple callbacks to preg_replace_callback.

From: Date: Wed, 04 Mar 2015 23:20:41 +0000
Subject: Req #69189 [Com]: Passing multiple callbacks to preg_replace_callback.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191170@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69189&edit=1 ID: 69189 Comment by: php at requinix dot net Reported by: admin at azareal dot com Summary: Passing multiple callbacks to preg_replace_callback. Status: Open Type: Feature/Change Request Package: PCRE related Operating System: Any PHP Version: master-Git-2015-03-04 (Git) Block user comment: N Private report: N New Comment: But how would that work? The first callback takes an array of matches as an argument, returns a string for the replacement, then the second does... what? Maybe you have an example in mind? Previous Comments: ------------------------------------------------------------------------ [2015-03-04 22:47:37] admin at azareal dot com Description: ------------ It would be nice, if it was possible to pass multiple callbacks to preg_replace_callback instead of just one. One possible method might be by placing them in an array. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69189&edit=1

« previous php.bugs (#191170) next »