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 maximum size of databasi in mysql?
Which methods should be used for sending an email using the variables $to, $subject, and $body?
What is scope of variable in php?
What is the use of array_count_values() in php?
Is age interval or ordinal?
Is php a programming language?
Why does sql injection happen?
What is difference between action hook and filter hook?
What is htaccess in php?
Write a program in php to reverse a number?
Why is php used for web development?
What is the main difference between require() and require_once()?