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 difference between require_once and require in php?
Explain what are the different errors in php?
Is facebook still in php?
How i can integrate merchant payment get way in zen cart? in php? plz help me
1 Answers BA Continnum Solutions,
How does cookies work in php?
Which php framework is best for security?
What is polymorphism in php?
hi recently i had faced an interview in that they asked me that php have faced the problem of y2k so which one is that year like 2030,2059 not remember exact year anybody will tell me pls?
Which is better wamp or xampp?
What is php static function?
How to track user logged out or not? When user is idle?
Xplain is it possible to use com component in php?