Can you use eval() ?

> I want to pass a function as a parameter and execute it in another
> function.
> A callback. :-)
>
> For example:
>
> function a() {
>      echo "a";
> }
>
>
> function b( $func ) {
>      func();
>      echo "b";
> }
>
>
> The output of "b( a )" will be "ab".

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

Reply via email to