#PHP 8.4 introduced array_find() to look for a value in an array, and also, its ...

@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.

#phptip #phptrick

php-tips.readthedocs.io/en/lat