Could someone please explain to me how the count function works with arrays like the one below?
My thought would be the following code to output 4, cause there are 4 elements there:
$a = array
(
"1" => "A",
1=> "B",
"C",
2 =>"D"
);
echo count($a);