给你写段示意代码,你可以试一下:$url = 'http://www.baidu.com/a.php?page=1&word=2&sp=3&xx=4';$params = substr($url,strpos($url,'&'));echo $params;
$a=$_SERVER['QUREY_STRING']; //获取 参数那段。$b=explode("&",$a);print_r($b);