Skip to content

Kirby 4.4.1

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