Re: Could we kill call_user_func?

From: Date: Fri, 15 Mar 2013 15:59:11 +0000
Subject: Re: Could we kill call_user_func?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-66653@lists.php.net to get a copy of this message
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()...

« previous php.internals (#66653) next »