PDA

View Full Version : array size question


Socraties
08-09-2002, 07:22 PM
Ok for some reason I cannot remember how to do this, If i have an array of an undetermined length. How can I tell how big the array is.

So I don't have to hardcode values such as this:

$array[0],$array[1],$array[2],etc....

So I could just simply do something like this

$array[$array_values]....

Spookster
08-09-2002, 09:18 PM
http://www.php.net/manual/en/function.count.php