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 |
when we use ob_start() function in php then the header() and session_start() does not gives the error like header already sent,please explain in brief
What is the use of get and post method in php?
What are regular expressions in programming?
Does php 7 support multiple inheritance?
How to call a php function from another php file?
How many columns can be added in a table in mysql?
What is the role of the .htaccess file in php?
What is dao in php?
What is xss and csrf?
Which function is used in php to count the total number of rows returned by any query?
Is array empty php?
What is the purpose of basename() function in PHP?