$result = parse_url("http://forum.antichat.ru/admin/lalala?on=true")); print $result['host']; //forum.antichat.ru