How to get the size of an array in php
By liviu - Posted on May 6th, 2009
Tagged:
To see the size of an array in php you use count($array).
$arraySize = count($tag);
for ($i = 0; $i < $arraySize; $i++)
{
...
}
It also works to see how many properties there are in an object.
Bookmark/Search this post with:
- liviu's blog
- Login or register to post comments
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket