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

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

<pre>

  array(1) {

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

  

原文地址:https://www.cnblogs.com/pansidong/p/10251298.html