[Solved] PHP : Counting how many element in an array [closed]


just use count(),

$array = array(1,3,2,4,6);
$a=count($array);
echo $a;

solved PHP : Counting how many element in an array [closed]