there’s an rfc vote currently underway for a number of new array functions in php8.4 (thanks to symfony station for pointing this out!). the proposal is for four new functions for finding and evaluating arrays using callable
s. the functions are:
- array_find()
- array_find_key()
- array_any()
- array_all()
the full details can be read here
if we’re impatient, though, we can skip waiting for php8.4 and homeroll these ourselves.
Continue reading →