久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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數(shù)組刪除相同的值的方法

      php數(shù)組刪除相同的值的方法

      php數(shù)組刪除相同的值

      在php中可以通過“array_unique()”函數(shù),來實現(xiàn)去除數(shù)組中的重復(fù)值,該函數(shù)的用法為“array_unique($array)”,其參數(shù)$array表示為要去除重復(fù)值的數(shù)組,該函數(shù)的返回值為去除重復(fù)值后的數(shù)組。

      array_unique示例

      <?php $input = array("a" => "green", "red", "b" => "green", "blue", "red"); $result = array_unique($input); print_r($result); ?>

      輸出結(jié)果:

      Array (     [a] => green     [0] => red     [1] => blue )

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