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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you identify independent and dependent variables in regression analysis?

888


Do you know is it possible to extend the execution time of a php script?

985


What is serialization in php?

909


How to block direct directory access in PHP?

921


How can you execute php script from the command line?

956


How many escape sequences are recognized in double-quoted strings in php?

929


What type of operation is needed when passing values through a form or an url?

918


What is scope of variable in php?

999


Write a program to display a table of any given number?

876


Tell me how can we display information of a variable and readable by human with php?

975


What is php and its advantages?

895


What is properties of class?

992


Tell me how is it possible to know the number of rows returned in result set?

1017


What are the two main string operators?

994


What is die in php?

977