"22", 3=>"33", 4=>"" ); print_r(count(array_filter($arr))); ?> http://www.bkjia.com/PHPjc/728106.htmlwww.b">
时间:2021-07-01 10:21:17 帮助过:2人阅读
$arr = array(
1=>"11",
2=>"22",
3=>"33",
4=>""
);
print_r(count(array_filter($arr)));
?>
http://www.bkjia.com/PHPjc/728106.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/728106.htmlTechArticle 代码如下:
?php $arr = array( 1="11", 2="22", 3="33", 4="" ); print_r(count(array_filter($arr))); ?...