I've googled this but found no answers, so I guess it's not possible. If there is a way, I'd love to know it. Thanks
+4
A:
The number of keys in the array will always be equivalent to the number of elements in the array, as the keys must be unique. So:
$numKeys = count($array);
Tom Haigh
2010-04-27 12:08:24
+3
A:
Array is as long as its keys, you can use either of count
or sizeof
eg
echo count($your_array);
or
echo sizeof($your_array);
Sarfraz
2010-04-27 12:09:05