Bob,

call_user_func is not call_user_func_array
>
> call_user_func($func) is the same as $func(). In any way.
>

Not in any way. call_user_func accepts any expression for the function to
call. `$func()` only accepts callables.

Example:

call_user_func(getCallback());
getCallback()(); // <-- syntax error.

You *could* solve it with variable foo:

${'_'.!$_=getCallback()}();

But I'd stick to call_user_func()...

Reply via email to