I have the following array :
$array = array (
'a' => 'A',
'b' => 'B',
'c' => 'C'
);
I want to understand this behaviour :
// true, normal behaviour, there is a 'A' value in my array
echo array_search('A', $array) === 'a';
// true, normal behaviour, there is no 1 value in my array
echo array_search(1, $array) === false;
// true ???? there is no 0 as value in my array
echo array_search(0, $array) === 'a';
Why does array_search(0, $array)
return the first key of my array?