Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can we know the count/number of elements of an array?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use interface in php?

969


Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

991


How many records can be stored in mysql table?

1013


How can php and html interact?

1051


How would you open a directory for reading in php?

1019


What the use of var_dump()?

1044


What is the difference between indexed and associative array?

1024


What is warning – “cannot modify header information – headers already sent”?

1075


Difference between array_combine and array_merge?

1163


How do you clear environment variables?

940


What is a controller in php?

1000


what is difference between PHP4 , PHP5

2365


What is the main difference between asp net and php?

1019


Write logic to print Floyd's triangle in PHP?

1049


Explain about getters and setters in php?

1068