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 is a persistence cookie?
What is the difference between characters 34 and x34?
What is encapsulation in php with example?
What's the difference between __sleep and __wakeup?
client side scripting language Vs server side scripting language
Is it possible multiple inheritance in php?
Does php need apache?
Tell me what are the different types of errors in php?
Why do we use hooks?
Does strlen include null?
How to fix "headers already sent" error in php
What are the different types of PHP arrays?