Possible Duplicate:
explode without variables
$domainArray = explode('.', $_SERVER['HTTP_REFERER']);
$domainname = $domainArray[1];
I have to run these 2 lines of code on many pages of a site - above code works fine.
I want to change it into one line and have tried many times unsuccessfully.
Any ideas?