Calling a Method on a method
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3724112/php-method-chaining">PHP method chaining?</a>  </p>
</blockquote>



<p>So I can remember seeing in some code examples somewhere calling of a method on a method like:</p>

<pre><code>$classname-&gt;method1()-&gt;method2();
</code></pre>

<p>Can you please explain to me what we call this, and give an example scenario of its usage?
Also if you have a link to a tutorial or article on this would be helpful.</p>

<p>I'm new to Object Oriented PHP. And before you kill me for what might be a dumb question, understand that i don't know what to search for on Google, please help... </p>
