How to get the size of an array in php

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.