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 the maximum size of databasi in mysql?

4 Answers  


Which methods should be used for sending an email using the variables $to, $subject, and $body?

0 Answers  


What is scope of variable in php?

0 Answers  


What is the use of array_count_values() in php?

0 Answers  


Is age interval or ordinal?

0 Answers  


Is php a programming language?

0 Answers  


Why does sql injection happen?

0 Answers  


What is difference between action hook and filter hook?

0 Answers  


What is htaccess in php?

0 Answers  


Write a program in php to reverse a number?

0 Answers  


Why is php used for web development?

0 Answers  


What is the main difference between require() and require_once()?

0 Answers  


Categories