Php count() Function

The count() function is used to count and returns the number of elements in the array.

Demo :

Type Array Value :
  add one more  
Array count is : 0

Example :

Type Array Value: a

Type Array Value: b

Type Array Value: c

Type Array Value: d

If you need to array count from a list following code useful to you.

 $alphabets = array("a", "b", "c", "d", "e");
 $result = count($alphabets);
 echo $result;

In the count() functions have used two parameters that name is mixed var, [int mode].

Free Download Script :

If you need count() function demo code download from following link.