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 |
AentteQ Software Technologies Q: what are benifits of using LAMP..?
Distinguish between urlencode and urldecode?
please send me the interview questions and answers to my mail id : srikanthgovardana@yahoo.com or srikanthgovardana@gmail.com
What are the 3 types of sessions?
Which is the correct way to check if a session has already been started ?
Tell me how to create a session? How to set a value in session? How to remove data from a session?
Write a program to swap two numbers using php.
Why do we use sessions in php?
What is the difference between null and empty?
What is button in html?
What is full form of php? Who is the father or inventor of php?
What is the use of token in php?