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

Which MySQL function would you use to select a database?

1024


How to count a number of words in a string in php?

930


What is use of header() function in php? What the limitation of header()?

929


Tell me can the value of a constant change during the script's execution?

1167


What is a controller in programming?

980


How to create a session? How to remove data from a session?

953


I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

895


What are the differences between echo and print?

954


Explain what is the difference between for and foreach?

985


What is the difference between php and javascript?

1121


Why does sql injection happen?

949


How does php isset work?

895


Where are sessions stored php?

974


Tell me what is the difference between the functions strstr() and stristr()?

985


How are sessions maintained?

898