On Mon, 17 Nov 2003 11:04:47 -0800, you wrote:
>What I want to do is to call a function from within a function, but pass
>the secondary function name through the first function. Like this:
>
>function1(function2)
>
>Then call function2 from within function1. Unfortunately, I have been
>unable to figure out the proper syntax for calling the second function.
function A ()
{
echo ("A");
}
function B ($f)
{
call_user_func ($f);
echo ("B");
}
B ('A');
untested.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php