array_filter
spatie/fork
Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Filters elements of an array using a callback function
<?php array_filter
(array
$array
, ?callable
$callback
=
null
,
int $mode
=
0
): array