Skip to content

Kirby 4.5.0

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
$array * array
$callback * callable

Return type

array

Parent class

Kirby\Toolkit\A