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

Write a program to show the joining of two strings in php?

1011


What are the advantages of stored procedures in php?

1028


How does csrf attack work?

1074


How do you use bcrypt for hashing passwords in php?

1132


Why do we use php?

1007


What is the use of preg_match in php?

1045


in PHP for pdf which library used?

1074


What is a stored procedure in mysql?

1145


How to move uploaded files to permanent directory?

1010


What does nan stand for computer science?

1042


Differences between get and post methods?

1096


What is the difference between html and php?

1052


How to close a session properly?

1022


How do you define a constant in php?

1107


Do you know what does $globals means?

1102