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 diffrence between for and foreach?
11 Answers Hirolasoft, IBM, Photon,
How to remove duplicate values from array using php?
What is php used for?
What is design pattern? Explain all including singleton pattern?
What is psr in php?
What are different types of runtime errors in php?
What is serialization / object serialization ?
How do I stop php artisan serve in windows?
Explain what is meant by pear in php?
Tell us why did you choose this particular career path?
Write a query to to delete duplicate rows?
What do you mean by having php as whitespace insensitive?