How can we know the count/number of elements of an array?
Answer Posted / mahesh
$std=$mb->Get_Students();
then using
$cnt = count($std);
echo $cnt;
will display the total number of that array
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How do I stop a php script?
Which function gives us the number of affected entries by a query?
Can I write php code in html file?
Do you know what is the use of the function 'imagetypes()'?
What type of operation is needed when passing values through a form or an url?
Tell me how do I escape data before storing it into the database?
Which will check if a function exists?
How does the identity operator === compare two values?
Explain the syntax for ‘foreach’ loop with example.
What is abstract class php?
What is the difference between for and foreach loop in php?
What is empty php?
How To Get the Uploaded File Information in the Receiving Script?
Can php use gettext?
How to create database connection and query in php?