title: $headBlock = $this->getLayout()->getBlock('head'); what this line meaning
body: <p>I am new to object oriented programming and Magento.</p>
  
  <p>I want to know what this line does</p>
  
  <pre><code>$headBlock = $this-&gt;getLayout()-&gt;getBlock('head');
  </code></pre>
  
  <p>That is, how does the PHP code work, and how effect does it have on Magento.   </p>