callback function via preg_replace_callback

From: Date: Sun, 08 Jun 2003 20:25:19 +0000
Subject: callback function via preg_replace_callback
Groups: php.general 
Request: Send a blank email to php-general+get-150681@lists.php.net to get a copy of this message
Hi, I have Function A containing a preg_replace_callback calling Function B. The code works quite nicely. Now, is there a way for the callback function (B) to receive *additional* arguments (from A), so that, for example, it may optionally perform additional tasks? If not, is there a way for B to otherwise access arguments passed to A, for the same purpose? Thanks. --H. Tan-Tenn

« previous php.general (#150681) next »