Copy code The code is as follows:
$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.htmlTechArticleCopy the code as follows: ?php $arr = array( 1="11", 2="22", 3="33", 4="" ); print_r(count(array_filter($arr))); ?...