How can we know the count/number of elements of an array?

How can we know the count/number of elements of an array?

View Answers

November 15, 2010 at 5:45 PM

Hi everyone,

If you want to count the number of elements in the specified array then use count() function that return number of elements of the array.

syntax:

 count($arrayname);

Thanks









Related Tutorials/Questions & Answers:
Advertisements