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 additional tasks?
>If not, is there a way for B to otherwise access arguments passed to A, for
>the same purpose?

I'm pretty sure it's not possible, and I've asked similar questions before.

You could try generating the callback function /within/ A, using PHP's
equivalent of lambda functions:

http://www.php.net/manual/en/function.create-function.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to