Hi Alex,

> I like it! 
>
> What is the $use_flags parameter for?

It's for deciding what parameters to pass to callback, like 
https://www.php.net/array_filter - the reflection name should probably just be 
$flag

Occasionally, the key might be useful to check against, e.g. the identifier of 
an item in a map, or SplObjectStorage.

- the default is `any($iterable, fn ($value) => ...)`
- or `any($iterable, fn ($key) => expr, ARRAY_FILTER_USE_KEY)`
- or `any($iterable, fn ($value, $key) => expr, ARRAY_FILTER_USE_BOTH)`

Thanks,
- Tyson
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to