A::filter()
Filter the array using the given callback using both value and key
A::filter(array $array, callable $callback): array
Parameters
| Name | Type | Default |
|---|---|---|
| $arrayrequired | array |
no default value |
| $callbackrequired | callable |
no default value |
Return type
array