Ad
Code
Diff
  • function calculateEvenNumbers(array $no): int {
      return count(array_filter($no, function($num) { return $num % 2 === 0; }));
    }
    • function calculateEvenNumbers(array $numbers): int {
    • return count(array_filter($numbers, function($num) { return $num % 2 === 0; }));
    • function calculateEvenNumbers(array $no): int {
    • return count(array_filter($no, function($num) { return $num % 2 === 0; }));
    • }