分割空的字符串,可以分割出有内容的数组来

    public function ko(){
        $str = '';
        $arr = explode(',',$str);
        dump($arr);
        exit;
    }

<pre>

  array(1) {

    [0] =&gt; string(0) &quot;&quot;
  }
</pre>

  

posted @ 2019-01-10 17:28  盘思动  阅读(345)  评论(0编辑  收藏  举报