PHP call_user_func & $class->$func()
<p>RT</p>

<p>function 1 :</p>

<pre><code>$class-&gt;$func()
</code></pre>

<p>function 2:</p>

<pre><code>//Simple callback
call_user_func($func)
//Static class method call
call_user_func(array($class,$func))
//Object method call
$class = new MyClass();
call_user_func(array($class, $func));
</code></pre>

<p>Is there a difference? I want to see the sourcecode(<a href="https://github.com/php/php-src" rel="nofollow">https://github.com/php/php-src</a>) should we do?</p>
