Count php array element

count : Count all elements in an array.

Syntax
count(array)

Example:
<?php
$arr1 = array('A','B');
echo count($arr1); 
?>


Output:
2