How can we know the count/number of elements of an array?
Answer / 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 |
What does empty mean in php?
What is prepare in php?
What is singleton design pattern in php?
Tell me which function gives us the number of affected entries by a query?
Write a program in php to find the occurrence of a word in a string?
Is age an interval or ratio?
What is variable give example?
What is the current stable version of php?
How to compare two strings with comparison operators in php?
What is the purpose of pear in php?
What is mysql_fetch_array?
How to Retrieve a Cookie Value?