Nested object method calls from string
<p>how call this in PHP:</p>

<pre><code>$a = new Person();
$b = "method1()-&gt;method2()-&gt;method3()-&gt;methodn()";

$s-&gt;$b // doesn't work; 
</code></pre>

<p>I don't want to explode by "->" and then call each method separately.</p>
