How can we know the count/number of elements of an array?
Answers were Sorted based on User's Feedback
Answer / devendrarjadav
count(array) function returns the total number of elements
of specified array.
| Is This Answer Correct ? | 19 Yes | 4 No |
Answer / 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 |
Answer / joseph george c
you can get the no: of elements in the array through
count()
syntax:
count($arrayname);
| Is This Answer Correct ? | 7 Yes | 1 No |
What is the function file_get_contents() useful for?
What is the use of mysql_real_escape_string() function?
Who is the father or inventor of php?
How do I start a php session?
Is empty array php?
What is the current stable version of php? What advance thing in php7?
Tell me how to initiate a session in php?
What is the use of magic function in php?
What is a php form?
what is magic code ?
4 Answers eVenturers, iFlash, Zynga,
How can we submit form without a submit button?
How do you connet mysql database with php?