Re: null values
| From: | Bogdan Stancescu | Date: | Mon, 08 Sep 2003 11:15:08 +0000 |
| Subject: | Re: null values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161971@lists.php.net to get a copy of this message | ||
<?
function countNulls($array)
{
if (!is_array($array)) {
return(NULL);
}
reset($array);
$count=0;
while(list(,$val)=each($array)) {
if ($val===NULL) {
$count++;
}
}
return($count);
}
?>
Aris Santillan wrote:
hi how to count null values in an array? tnx