久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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ù)組元素的方法:可以通過使用array_splice函數(shù)來刪除數(shù)組中的一個元素,如【$a=array("a"=>"purple","b"=>"orange");array_splice($a,0,2,$a2);】。

      php如何刪除一個數(shù)組元素

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

      函數(shù)介紹:

      array_splice() 函數(shù)從數(shù)組中移除選定的元素,并用新元素取代它。函數(shù)也將返回被移除元素的數(shù)組。

      語法:

      array_splice(array,start,length,array)

      實例:

      <?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("a"=>"purple","b"=>"orange"); array_splice($a1,0,2,$a2); print_r($a1); ?>

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