久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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ù)組不為空

      1、使用函數(shù)“empty()”函數(shù)來判斷,將數(shù)組傳入此函數(shù),如果為true,即代表為空;

      $arr = [];  if (empty($arr)) {   //為空 } else {   //不為空 }

      2、通過“count()”函數(shù)來獲取數(shù)組條數(shù),再根據(jù)條數(shù)判斷是否小于1,如果小于1,即代表為空;

      $arr = [];  if (count($arr) < 1) {   //為空 } else {   //不為空 }

      推薦教程:《PHP教程》

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