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?

Answers were Sorted based on User's Feedback



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

Answer / devendrarjadav

count(array) function returns the total number of elements
of specified array.

Is This Answer Correct ?    19 Yes 4 No

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

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

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

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

Post New Answer

More PHP Interview Questions

What are new features in php 7?

0 Answers  


What is the difference between mysql_fetch_object and mysql_fetch_array?

10 Answers   Sarv,


what are the current or latest versions of LAMP ? Linux, Apache, MySql, PHP

4 Answers  


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

0 Answers  


Which function can be used to delete a file?

0 Answers  


Does https prevent csrf?

0 Answers  


Is php good for career?

0 Answers  


What is the purpose of destructor ?

2 Answers  


What is rtrim php?

0 Answers  


What is the difference between echo and print statement?

11 Answers   Rushmore Consultancy,


Is false empty php?

0 Answers  


Tell me what is htaccess?

0 Answers  


Categories