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

How do I stop a php script?

1015


Which function gives us the number of affected entries by a query?

989


Can I write php code in html file?

1049


Do you know what is the use of the function 'imagetypes()'?

1080


What type of operation is needed when passing values through a form or an url?

1048


Tell me how do I escape data before storing it into the database?

1133


Which will check if a function exists?

1128


How does the identity operator === compare two values?

1211


Explain the syntax for ‘foreach’ loop with example.

1002


What is abstract class php?

982


What is the difference between for and foreach loop in php?

1147


What is empty php?

1028


How To Get the Uploaded File Information in the Receiving Script?

1075


Can php use gettext?

1090


How to create database connection and query in php?

1083