久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php如何實現(xiàn)數(shù)組轉url字符串

      php實現(xiàn)數(shù)組轉url字符串的方法:【$queryStr = http_build_query($data);echo query_str;】。

      php如何實現(xiàn)數(shù)組轉url字符串

      本文操作環(huán)境:windows10系統(tǒng)、php 7、thinkpad t480電腦。

      先給出一個數(shù)組:

      $data = array('name' => 'tom', 'sex' => 1, 'channel' => 'ty');

      數(shù)組轉url參數(shù)字符串

      $queryStr = http_build_query($data); echo query_str;

      執(zhí)行結果:

      name=tom&sex=1&channel=ty

      url參數(shù)字符串轉數(shù)組

      parse_str($query_str,$query_arr); print_r($query_arr);

      執(zhí)行結果:

      array(name => tom,sex => 1,channel => ty)

      推薦學習:php培訓

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號