php计算数组不为空元素个数的方法_PHP
- WBOYOriginal
- 2016-06-01 11:56:45931browse
复制代码 代码如下:
$arr = array(
1=>"11",
2=>"22",
3=>"33",
4=>""
);
print_r(count(array_filter($arr)));
?>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn