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
Why do we use interface in php?
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
How many records can be stored in mysql table?
How can php and html interact?
How would you open a directory for reading in php?
What the use of var_dump()?
What is the difference between indexed and associative array?
What is warning – “cannot modify header information – headers already sent”?
Difference between array_combine and array_merge?
How do you clear environment variables?
What is a controller in php?
what is difference between PHP4 , PHP5
What is the main difference between asp net and php?
Write logic to print Floyd's triangle in PHP?
Explain about getters and setters in php?