How can we know the count/number of elements of an array?

How can we know the count/number of elements of an array?

How can we know the count/number of elements of an array?

View Answers

November 15, 2010 at 5:45 PM

Hi everyone,

If you want to count the number of elements in the specified array then use count() function that return number of elements of the array.

syntax:

 count($arrayname);

Thanks









Related Tutorials/Questions & Answers:
How can we know the count/number of elements of an array?
How to Append Arrays in PHP
Advertisements
How can we know that a session is started or not?
How can we know the number of days between two given dates using PHP?
Count number of "*"
swap two integer arrays
swap two integer arrays
swap two integer arrays
how to find [count the number of integers whose value is less than the average value of the integers]
Count number of characters in a column.
How can we destroy the cookie?
how i can print the elements before a spicific value in array queue?
How can you add elements of two arrayLists in java?
How to create arrays in JavaScript?
How can we register the variables into a session?
How can we repair a MySQL table?
How we can create a table through procedure ?
how can we store the encrypted passwaord in swings?
How to make elements invisible ?
PHP Sorting Arrays Tutorial
How can we destroy the session, how can we unset the variable of a session?
java arrays
multidimensional arrays
how we can create website through java
How can we get hibernate statistics?
Count number of occurences and print names alphabetically in Java
How to concatenate two arrays in Java?
How can we save a data list in jsf?
How can we solve this puzzle using java ?
java program to insert data into a file and count the number of words from the file???????
how to compare 2 arrays using java?
arrays,why we cannot use this statement
arrays,why we cannot use this statement
I want to know how can I create sessionfactory in hibernate 4 (latest version)
Iterating java arrays
Count number of nodes
Comparing Arrays
C Array copy example
How many ways we can give the output to a browser?
How can we encrypt the username and password using PHP?
How can we submit a form without a submit button?
How can we create a database using PHP and mysql?
How can we increase the execution time of a php script?
how can we prevent back option after log out.
what is cloud computing? any how we can implement?
How many ways can we get the value of current session id?
How can we get second of the current time using date function?
how can we pass parameters from jsp href to another servlet
How can we find the number of rows in a result set using PHP?
How many cookie object we can store in a session? is there any limit?

Ads