|
Php help needed...
Is there a better way to get this other then doing it in 2 steps?
$site = preg_replace ('#www.#is', '', $_SERVER['HTTP_HOST']);
$site = preg_replace ('#.com#is', '', $site);
I want just the parts inbetween www and the last . where its .com/.net etc.
Thanks
|