How do I find the size of an array?
<?php
$values = range("A","Z");
echo count($values);
?>
This will print "26" to the screen.
Alternatively you can use sizeof($arrayname) instead - it will return the same result.
More arrays PHP Questions
How do I remove and view the last element of an array?How do you remove duplicate values from an array?
How do I reverse sort the members of an array?
How can I display values in a two dimensional array?
How can I create an array of the letters of the alphabet?