How can we know the count/number of elements of an array?
Answer Posted / rajan vardawaj
2 ways:
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.
Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
Which is better mysql or sql?
How to insert a line break in php string?
How do you trim spaces in excel?
What's the difference between __sleep and __wakeup?
What is new static in php?
What is the actually used php version?
What is is_null() in php?
What is php.ini & .htacess file?
What is slim framework?
What is a php trait?
Which function is used in php to search a particular value in an array?
What is php explain?
What type of errors can be occurred in php?
What is echo and print in php?
How many php functions are there?