Re: [PHP] callback function via preg_replace_callback

2003-06-08 Thread David Otton
On Sun, 08 Jun 2003 16:25:19 -0400, you wrote: >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

[PHP] callback function via preg_replace_callback

2003-06-08 Thread Henry H. Tan-Tenn
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