PHP Simple QA
It contains Simple Questions and Answers in PHP
how can get number of elements of an array
a) sizeof($array) - This function is an alias of count()
b) 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.
Newer Post
Older Post
Home