1.

How Can We Know The Count / Number Of Elements Of An Array?

Answer»

2 WAYS:

sizeof($array) - This function is an alias of count().
count($urarray) - This function returns the number of elements in an array. Interestingly if you just pass a simple VAR INSTEAD of an array, count() will return 1.

2 ways:

sizeof($array) - This function is an alias of count().
count($urarray) - This function returns the number of elements in an array. Interestingly if you just pass a simple var instead of an array, count() will return 1.



Discussion

No Comment Found