大佬们
URL链接如下 https://www.baidu.cn/?d&b_scene_zt=1&renqun_youhua=375297
如何获取第一个?后面的参数呢
$test = parse_url("http://localhost/index.php?name=tank&sex=1#top");print_r($test);
试一下
$url = "https://www.baidu.cn/?d&b_scene_zt=1&renqun_youhua=375297";echo parse_url($url)['query'];$str = explode( "&",parse_url($url)['query']);
echo '
'.print_r($str,true).'
$test = parse_url("http://localhost/index.php?name=tank&sex=1#top");print_r($test);
##尝试试一下
$url = "https://www.baidu.cn/?d&b_scene_zt=1&renqun_youhua=375297";echo parse_url($url)['query'];$str = explode( "&",parse_url($url)['query']);
echo '
';