Using dynamic methods
<p>Why does my dynamic method <code>usersMethod</code> not return any result?
The page is always empty.</p>

<pre><code>&lt;?php
class SampleClass
{
    public function __call($name, $args)
    {
        $m = $this-&gt;methods();

        eval($m['usersMethod']);
    }

    public function methods()
    {
        $methods = array(
            'usersMethod'=&gt;'$a=2; return $a;', 
            'membersMethod'=&gt;'$a=1; return $a;'
        );

        return $methods;
    }
}
$sample = new SampleClass();
echo $sample-&gt;usersMethod();
?&gt;
</code></pre>
