当空字符串使用 explode() 函数时 返回为 Array ( [0] => ) 而非 Array ( )

相应的 count() 值为 1 而非 0

1.png

所以使用应该加入判断

if($a){
...
}

标签: none

添加新评论