array_filter()
function array_filter(array $array, callable $callback = null, int $mode = 0): array
Filters elements of an array using a callback function.
Parameters:
$array(array)$callback(callable), defaultnull, optional$mode(int), default0, optional
Returns: array
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_filter is implemented in the compiler, see the internals page.