The primitives any() and all() are a common part of many programming languages and help in avoiding verbosity or unnecessary abstractions.
Add PHP\iterable\any() and all() to PHP?
Names to use: any()/all() or any_value()/all_values()
any()/all()
14 Votes (82%)
any_value()/all_values()
3 Votes (18%)
Reasons for voting against this RFC
Object to the choice of namespace
Prefer the global namespace
Confused about the implementation
Prefer userland solutions
Too small in scope
5 Votes (23%)
Object to the choice of namespace
4 Votes (18%)
Prefer the global namespace
3 Votes (14%)
Confused about the implementation
1 Votes (5%)
Prefer userland solutions
3 Votes (14%)
Voted for this RFC
5 Votes (23%)