#PHP 8.4 introduced array_find() to look for a value in an array, and also, its ...
dseguy @dseguy@phpc.social
#PHP 8.4 introduced array_find() to look for a value in an array, and also, its cousin, array_find_key(), which returns the key where to find that value.
The second got less attention, but is arguably more useful.