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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is session id stored?

961


Describe which programming language does php parallel to?

979


Which is better php or wordpress?

946


How to open a file for writing?

1063


What is a lambda function in php?

1104


Can we extend two classes in php?

1061


What is use of echo in php?

931


What is session data?

962


How to repeat a string to a specific number of times in php?

978


What are properties in php?

972


Do you know how can php and html interact?

1003


What are the difference between overloading and overriding in oops?

1027


Tell me what is the actually used php version?

1028


What are the advantages of indexes in php?

1041


What is the difference between $var and $$var?

1063