获取地址栏内容

print_r(parse_url('http://www.baidu.com/test.php?id=10'));

Array
(
    [scheme] => http
    [host] => www.baidu.com
    [path] => /test.php
    [query] => id=10
)

posted @ 2013-03-27 23:17  /折磨  阅读(129)  评论(0编辑  收藏  举报