View Full Version : Counting values in an array?

08-20-2007, 11:37 PM
I was wonder if theres a way to know how many values is in one array.

What i'm doing is, using a while query which stores an ID of an item in the value of a checkbox and the checkbox name is "name[]"

This turns it into an array, so i was wondering if i could count how many items actually are in that array?

Sorry if this doesn't make sense =X

08-20-2007, 11:40 PM
count() (http://www.php.net/count)

08-20-2007, 11:41 PM
Thanks XD So simple ...

08-20-2007, 11:43 PM
FYI: List of array-related functions (http://www.php.net/array)