Function

array_filter

Synopsis

array_filter(mixed, mixed ...): array

Area
Runtime\PS\Core\Arrays\array_filterareas

Description

array_filter returns the elements of $array for which $callback is truthy, preserving the keys; without a $callback it filters the values on their own truthiness, and $mode selects what the callback receives (ARRAY_FILTER_USE_KEY the key, ARRAY_FILTER_USE_BOTH the value and the key).

Usage

$value = array_filter($arguments);
$fn = array_filter(...);

See also