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 |
Does php 7 support mysql?
Tell me what is the use of "ksort" in php?
What is overloading and overriding in oop?
Differences between get, post and request methods ?
What is the main difference between asp net and php?
AentteQ Software Technologies Q: what are benifits of using LAMP..?
How do you pass a variable by value in php?
Code to upload a file in PHP?
Explain about the connective abilities of the PHP?
What is array function in javascript?
hi, i am new for php I want to know where to create & how to run phpscript programme in LAMP?
Is key in array php?