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 set session.gc_divisor properly?
What are the characteristics of php variables?
What are the file upload settings in configuration file?
How is it possible to remove escape characters from a string?
How can we register the variables into a Session?
7 Answers HCL, Star Computers, Trikon Networks,
What is php ci?
What are the advantages of using php?
How many keywords are there in php?
What is member function?
Explain the importance of the function htmlentities.
What is php and features of php?
Can anyone explain about join?