PHP Call a instance method with call_user_func within the same class
<p>I'm trying to use <code>call_user_func</code> to call a method from another method of the same object, e.g.</p>

<pre><code>class MyClass
{
    public function __construct()
    {
        $this-&gt;foo('bar');
    }
    public function foo($method)
    {
        return call_user_func(array($this, $method), 'Hello World');
    }

    public function bar($message)
    {
        echo $message;
    }
}
</code></pre>

<p><code>new MyClass;</code> Should return 'Hello World'...</p>

<p>Does anyone know the correct way to achieve this?</p>

<p>Many thanks!</p>
