$url = "http://www.google.com/search?hl=en&q=php+rules&btnG=Search";
$parts = parse_url($url);
print_r($parts);
This would return:
Array
(
[scheme] => http
[host] => www.google.com
[path] => /search
[query] => hl=en&q=php+rules&btnG=Search
)
$url = "http://www.google.com/search?hl=en&q=php+rules&btnG=Search";
$parts = parse_url($url);
print_r($parts);
Array
(
[scheme] => http
[host] => www.google.com
[path] => /search
[query] => hl=en&q=php+rules&btnG=Search
)
No comments:
Post a Comment