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 |
how to run PHP in command line?
8 Answers InfoShore, Ramp Green, Xtreeme,
How do you count numbers in php?
What is MIME?
What Is a Persistent Cookie?
What is overloading in php?
What is polymorphism with example in php?
Difference between array_combine and array_merge?
How to download files from an external server with code in php?
How to create a mysql connection?
How to remove duplicate values from array using php?
Tell me what is the use of mysql_real_escape_string() function?
Write the statements that are used to connect php with mysql