Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP 13190-How-can-we-know-the-count How can we know the count/number of elements of an array?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brijesh
How can we know the count/number of elements of an array?
1 Answer(s)      4 years and 2 months ago
Posted in : PHP


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


Advertisement
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
 

 

 

DMCA.com