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

AentteQ Software Technologies Q: what are benifits of using LAMP..?

5 Answers  


Distinguish between urlencode and urldecode?

0 Answers  


please send me the interview questions and answers to my mail id : srikanthgovardana@yahoo.com or srikanthgovardana@gmail.com

0 Answers  


What are the 3 types of sessions?

0 Answers  


Which is the correct way to check if a session has already been started ?

0 Answers  


Tell me how to create a session? How to set a value in session? How to remove data from a session?

0 Answers  


Write a program to swap two numbers using php.

0 Answers  


Why do we use sessions in php?

0 Answers  


What is the difference between null and empty?

0 Answers  


What is button in html?

0 Answers  


What is full form of php? Who is the father or inventor of php?

0 Answers  


What is the use of token in php?

0 Answers  


Categories