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 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 destroy the cookie?
PHP Sorting Arrays Tutorial
multidimensional arrays
Count number of occurences and print names alphabetically in Java
How to make elements invisible ?
java program to insert data into a file and count the number of words from the file???????
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?
java arrays
How to concatenate two arrays in Java?
Iterating java arrays
Count number of nodes
arrays,why we cannot use this statement
arrays,why we cannot use this statement
Comparing Arrays
how we can create website through java
How can we get hibernate statistics?
how to compare 2 arrays using java?
How can we save a data list in jsf?
C Array copy example
I want to know how can I create sessionfactory in hibernate 4 (latest version)
How can we destroy the session, how can we unset the variable of a session?
How can we solve this puzzle using java ?
arrays
Program to count the number of unique words in a file using HashMap
PHP Array Count Values
arrays
arrays
Arrays
How many ways we can give the output to a browser?
How can we encrypt the username and password using PHP?
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?

Ads