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
Which MySQL function would you use to select a database?
How to count a number of words in a string in php?
What is use of header() function in php? What the limitation of header()?
Tell me can the value of a constant change during the script's execution?
What is a controller in programming?
How to create a session? How to remove data from a session?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
What are the differences between echo and print?
Explain what is the difference between for and foreach?
What is the difference between php and javascript?
Why does sql injection happen?
How does php isset work?
Where are sessions stored php?
Tell me what is the difference between the functions strstr() and stristr()?
How are sessions maintained?