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 |
Which software is used to run php programs?
what do you mean by webserver's document root?
How is it possible to return a value from a function?
Hi, My Name is Ajay Jha. What My Question is I am Percuing in Bca. It's My 5th Semester. I Want To Make My Carrear as a web designer that's Why i wants to do Php, Is it right Desision for Me ?
How to add a cookie?
please explain me mail function in php
What is trim codeigniter?
what are the current or latest versions of LAMP ? Linux, Apache, MySql, PHP
Which function(s) in PHP computes the difference of arrays?
How to upload and play video in Php when u r in localhost?
Shopping cart online validation i.e. how can we configure Paypal, etc.?
What is the difference between characters 23 and x23?