php计算数组不为空元素个数的方法
时间:2021-01-27 10:42:09|栏目:PHP代码|点击: 次
复制代码 代码如下:
<?php
$arr = array(
1=>"11",
2=>"22",
3=>"33",
4=>""
);
print_r(count(array_filter($arr)));
?>
上一篇:MySQL时间字段究竟使用INT还是DateTime的说明
栏 目:PHP代码
本文标题:php计算数组不为空元素个数的方法
本文地址:http://www.codeinn.net/misctech/52315.html






