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 |
How to add different images in php program like a job site.......
Is key in array php?
what is interface in php? how it is use?
10 Answers Infosys, PHP, Times, Torque Infotech, Wipro,
How many data types are used by php?
Can we set session value in javascript?
What Is a Persistent Cookie?
what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?
What is the use of count() function in php?
What is the use of header() function in php?
how to set session expire(session timeout) using php code
How to check your php installation?
Which is better session or cookie?