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
How do you identify independent and dependent variables in regression analysis?
Do you know is it possible to extend the execution time of a php script?
What is serialization in php?
How to block direct directory access in PHP?
How can you execute php script from the command line?
How many escape sequences are recognized in double-quoted strings in php?
What type of operation is needed when passing values through a form or an url?
What is scope of variable in php?
Write a program to display a table of any given number?
Tell me how can we display information of a variable and readable by human with php?
What is php and its advantages?
What is properties of class?
Tell me how is it possible to know the number of rows returned in result set?
What are the two main string operators?
What is die in php?