私は次の配列を持っています:
$array = array (
'a' => 'A',
'b' => 'B',
'c' => 'C'
);
この動作を理解したい:
// 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';
array_search(0, $array)
配列の最初のキーを返すのはなぜですか?