<?php
$url = "http://www.google.ru/?sclient=psy-ab&hl=ru&safe=off&source=hp&".
"q=string&pbx=1&oq=string&aq=f&aqi=g4&aql=&gs_sm=3&biw=1280&bih=892";
$arr=parse_url($url);
parse_str($arr["query"], $output);
print_r($output);
echo $arr["host"];
Array ( [sclient] => psy-ab [hl] => ru [safe] => off [source] => hp [q] => string [pbx] => 1 [oq] => string [aq] => f [aqi] => g4 [aql] => [gs_sm] => 3 [biw] => 1280 [bih] => 892 ) www.google.ru