search

Home  >  Q&A  >  body text

How to get the first parameter in php?

Big guys

The URL link is as follows https://www.baidu.cn/?d&b_scene_zt=1&renqun_youhua=375297

How to Get the first one? What about the following parameters

HUANGHUANG1343 days ago1421

reply all(3)I'll reply

  • 对方正在输入....

    对方正在输入....2021-09-10 17:27:52

    $test = parse_url("http://localhost/index.php?name=tank&sex=1#top");print_r($test);

    试试

    reply
    0
  • 灭绝师太

    灭绝师太2021-04-20 10:11:57

    试一下

    $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 '<pre>'.print_r($str,true).'';

    reply
    0
  • 网站建设-推广-企业邮箱-天涯

    It's so complicated

    网站建设-推广-企业邮箱-天涯 · 2021-06-15 17:04:38
  • Cancelreply