Forum : How do I find the size of an array?
Brief description  about Online courses   join in Online courses
View Arun  Desai 's Profile

How do I find the size of an array?

How do I find the size of an array?????
Asked by Arun Desai | Mar 17, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Arun,
<?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.
Mar 17, 2010