<?php
$array = array('a' => "jhdsfhjdfsjk", 'b' => "ewropl",'c' =>"cde",'d' =>"");
$arr= array_filter($array);
print_r($arr);
?>
PHP数组中去掉空值
- 发表于2021/10/11 16:11
- 560浏览
- 0评论
- 2分钟阅读
<?php
$array = array('a' => "jhdsfhjdfsjk", 'b' => "ewropl",'c' =>"cde",'d' =>"");
$arr= array_filter($array);
print_r($arr);
?>