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 is the diffrence between for and foreach?

11 Answers   Hirolasoft, IBM, Photon,


How to remove duplicate values from array using php?

0 Answers  


What is php used for?

0 Answers  


What is design pattern? Explain all including singleton pattern?

0 Answers  


What is psr in php?

0 Answers  


What are different types of runtime errors in php?

0 Answers  


What is serialization / object serialization ?

2 Answers  


How do I stop php artisan serve in windows?

0 Answers  


Explain what is meant by pear in php?

0 Answers  


Tell us why did you choose this particular career path?

0 Answers  


Write a query to to delete duplicate rows?

4 Answers   ATS,


What do you mean by having php as whitespace insensitive?

0 Answers  


Categories