I searched for this but did not find any answers, so I guess this is not possible. If there is a way, I would like to know. Thanks to
The number of keys in an array will always be the number of elements in the array, since the keys must be unique. So:
$numKeys = count($array);
count(array_keys($array));
$array = array('one', 'two', 'three'); echo count($array);
http://lv.php.net/count
Array as long as its keys, you can use any of count or sizeof for example
count
sizeof
echo count($your_array);
or
echo sizeof($your_array);