Forum : How can we know the count/number of elements of an array..
Brief description  about Online courses   join in Online courses
View Abhijit  Paul 's Profile

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

how to count array elements using php..?
Asked by Abhijit Paul | Nov 4, 2009 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Abhijit,

You can get the count/number of elements in a array using below array functions:

1) count()
2) sizeof()


count($urarray) - This function returns the number of elements in an array.
sizeof($array) - This function is an alias of count()
Nov 4, 2009