array_slice
array_search
in_array
配列で値を検索してキーを返します。なければfalse。
array_search(mixed $needle, array $haystack): int|string|false