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 does empty mean in php?

0 Answers  


What is prepare in php?

0 Answers  


What is singleton design pattern in php?

0 Answers  


Tell me which function gives us the number of affected entries by a query?

0 Answers  


Write a program in php to find the occurrence of a word in a string?

0 Answers  


Is age an interval or ratio?

0 Answers  


What is variable give example?

0 Answers  


What is the current stable version of php?

0 Answers  


How to compare two strings with comparison operators in php?

0 Answers  


What is the purpose of pear in php?

0 Answers  


What is mysql_fetch_array?

0 Answers  


How to Retrieve a Cookie Value?

0 Answers  


Categories