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 |
Make a "dynamic drop down list" with using only PHP,HTML and MySQL..
Tell me how to find current date and time?
my english is not too good then what we apply for a php programer post
What is PEAR?
How many php functions are there?
how to change the div background color on every refresh..guys can u help me out.
What is the use of preg_match in php?
How to upload file in php?
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
How can we extract string 'techinterviews.com' from a string 'http://www.techinterviews.com' using regular expression in PHP?
Explain soundex() and metaphone().
What is return value in php?