Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
配列内で最初に一致する値を見つけてキーを返す、PHP に事前定義された関数はありますか。
$ar = array(null, 1, 0, 4, 3, 2, 7, 9, 0); fn($ar, null); // 0 fn($ar, 4); // 3 fn($ar, 7); //6
マニュアルを調べましたが、何も見つかりません。