oliver-dvorski/array_find (packagist): array_find for php. It stops the linear search when the first match is found.
Keywords: arrays|linear-search-algorithm|php|search