$numbers = [-2, 4, -6, 8, 10]; function isPositive($number) { return $number > 0; } $filteredArray = array_filter($numbers, "isPositive");