title: Get domain and subdomain from $_SERVER["SERVER_NAME"] (or other way)
body: <p>I'm using: <code>$_SERVER["SERVER_NAME"];</code> to get: <code>sub1.host.com.ar</code></p>
  
  <p>How can I get 'sub1' and 'host' from <code>$_SERVER["SERVER_NAME"];</code>/ is there any simpler way to echo them?</p>