[php] PHP function to get the subdomain of a URL