title: Remove "www." from domain name string
body: <p>How do I remove "www." from the url if it comes in the beginning only.</p>
  
  <pre><code>www.google.com --&gt; google.com
  </code></pre>
  
  <p>I have tried the following so far, but this removes the "www." if it is in any place :</p>
  
  <pre><code>str_ireplace('www.','',$parsed_url); 
  </code></pre>
  
  <p>Thanks in advance.</p>