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

What is a persistence cookie?

0 Answers  


What is the difference between characters 34 and x34?

0 Answers  


What is encapsulation in php with example?

0 Answers  


What's the difference between __sleep and __wakeup?

0 Answers  


client side scripting language Vs server side scripting language

7 Answers   IBM, IRT,


Is it possible multiple inheritance in php?

0 Answers  


Does php need apache?

0 Answers  


Tell me what are the different types of errors in php?

0 Answers  


Why do we use hooks?

0 Answers  


Does strlen include null?

0 Answers  


How to fix "headers already sent" error in php

0 Answers  


What are the different types of PHP arrays?

0 Answers  


Categories