title: How do I split a domain name into sld and tld(extension)?
body: <p>The domain's need to be returned as the actual domain name, and the extension, separately</p>
  
  <pre><code>http://www.something.com
  </code></pre>
  
  <p>should return: <code>sld = something</code>, <code>tld= com</code></p>
  
  <pre><code>something.co.uk
  </code></pre>
  
  <p>should return: <code>sld = something</code>, <code>tld= co.uk</code></p>
  
  <p>I am not much familiar with regular expressions, so I really need some help in handling this.</p>
  
  <p>I suppose I can use <code>parse_url()</code>, and check the <code>host</code>, but what then?</p>