Example:
$array = array(1, 2, 3, 4);
$result = Arrays::filter($array, function ($value) {
return $value > 2;
});
Result:
Array
(
[2] => 3
[3] => 4
)