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
What is binary safe string?
what are interfaces and Abstart classes
How to take a substring from a given string?
Tell me how a constant is defined in a php script?
where do we use htaccess?
List some string function name in php?
Write a program to get lcm of two numbers using php?
How come the code works, but does not for two-dimensional array of mine?
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani
What is the role of php.ini file?
How to read one character from a file?
Explain about objects in PHP?
Are react hooks stable?
Can we use php variable in javascript?
What language is php written in?