Hi I want to get a subdomain name only using "$_SERVER['HTTP_HOST']" and I think the php trim function will be the easiest way to do it. It should only return subdomain name.
mysub.somedomain.com => mysub
Somedomain.com could be anything so it can't use the fixed length count.
Thanks in advance.