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 the difference between InnoDb tables and MyIsam Tables in php
Why does sql injection happen?
What does PEAR stands for?
Are php variables global?
What is the function in PHP do not return a timestamp?
Which function is used to read a single character from a file in PHP.
Tell me how to get the value of current session id?
What is self in php?
Why these language is needed?
What is meant by urlencode and urldecode?
Why would we use === instead of ==?
Is it more secure to use cookies to trfer session ids?