PHP Multiple Object Dereference
<p>How can I do multiple levels of de-referencing? For instance, in C#, we can keep appending a '.' to access the next objects properties: <code>string s, s.ToString(), s.ToString().ToUpper()</code>. With PHP, I get to around <code>$this-&gt;someobject</code>, but <code>$this-&gt;someobject-&gt;somethingelse</code> does not appear to work. </p>

<p>Any ideas?  </p>
