PHPArrayarray_search
array_slice

array_searchArray

in_array

Searches the array for a given value and returns the key if successful.

Syntax

array_search(mixed $needle, array $haystack): int|string|false