...

View Full Version : How to find size of array?



YourDirector
09-20-2011, 11:10 AM
Hey everyone,

I'm just looking for a way of assigning the size of an array to a separate var.

So I basically want to get an array and detect the amount of items within it, then assign that number to a var.

Is this possible?

Thanks

gvre
09-20-2011, 11:39 AM
$size = count($array);

YourDirector
09-20-2011, 11:55 AM
$size = count($array);

Wonderful, thank you :-)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum