title: PHP OOP structure
body: <p>I'm trying to improve my OOP skill. Recently, I've read an article that has this code structure:</p>
  
  <pre><code>$this-&gt;getUserInfo()-&gt;display();
  </code></pre>
  
  <p>When I code, I just do something like this:</p>
  
  <pre><code>$this-&gt;getUserInfo();
  </code></pre>
  
  <p>How do I do something like the above..."multiple-passing" or whatever it's called. I think it's cool if I can make my code be able to do that...just looking at the code...I'm impressed.</p>
  
  <p>Can somebody post a code something replicating the above...I want to try it too. I want to learn how^^</p>
  
  <p>Thanks!</p>