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
Write a program to show the joining of two strings in php?
What are the advantages of stored procedures in php?
How does csrf attack work?
How do you use bcrypt for hashing passwords in php?
Why do we use php?
What is the use of preg_match in php?
in PHP for pdf which library used?
What is a stored procedure in mysql?
How to move uploaded files to permanent directory?
What does nan stand for computer science?
Differences between get and post methods?
What is the difference between html and php?
How to close a session properly?
How do you define a constant in php?
Do you know what does $globals means?