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

when we use ob_start() function in php then the header() and session_start() does not gives the error like header already sent,please explain in brief

2 Answers  


What is the use of get and post method in php?

0 Answers  


What are regular expressions in programming?

0 Answers  


Does php 7 support multiple inheritance?

0 Answers  


How to call a php function from another php file?

0 Answers  


How many columns can be added in a table in mysql?

0 Answers  


What is the role of the .htaccess file in php?

0 Answers  


What is dao in php?

0 Answers  


What is xss and csrf?

0 Answers  


Which function is used in php to count the total number of rows returned by any query?

0 Answers  


Is array empty php?

0 Answers  


What is the purpose of basename() function in PHP?

0 Answers  


Categories