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?



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

Answer / rajan vardawaj

2 ways:
a) sizeof($array) - This function is an alias of count()
b) count($urarray) - This function returns the number of
elements in an array. Interestingly if you just pass a
simple var instead of an array, count() will return 1.

Is This Answer Correct ?    17 Yes 0 No

Post New Answer

More PHP Interview Questions

how to run PHP in command line?

8 Answers   InfoShore, Ramp Green, Xtreeme,


How do you count numbers in php?

0 Answers  


What is MIME?

2 Answers  


What Is a Persistent Cookie?

0 Answers  


What is overloading in php?

0 Answers  


What is polymorphism with example in php?

0 Answers  


Difference between array_combine and array_merge?

0 Answers  


How to download files from an external server with code in php?

0 Answers  


How to create a mysql connection?

0 Answers  


How to remove duplicate values from array using php?

0 Answers  


Tell me what is the use of mysql_real_escape_string() function?

0 Answers  


Write the statements that are used to connect php with mysql

0 Answers  


Categories