Skip to content

Conversation

@into-the-v0id
Copy link

@into-the-v0id into-the-v0id commented Nov 20, 2023

This PR adds the Arrays::find() helper. It's somewhat commonly used functionality and often inconvenient and unnecessarily verbose in raw PHP.

@dg
Copy link
Member

dg commented Nov 21, 2023

Thanks, that's a useful feature.

I'm thinking about one thing. Probably the findLast() function would come in handy over time. What about utilizing the already existing first() and last() functions and just add an optional $callback parameter to them?

@dg dg closed this in 7768aae Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants