Discussion board
How can we know the count/number of elements of an array..
By Abhijit Paul
how to count array elements using php..?
Reply
Post   Reset
Teacher SiliconIndia replied to Abhijit Paul Wednesday, November 04, 2009
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()