← All tasks
🧮
Programming Beginner

Write an array_filter Expression for Even Numbers

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP expression that filters an array to only its even numbers.

Scenario

You have a $numbers array and need only the even values for a report.

Ready to try it?

Create a free account and subscribe to take "Write an array_filter Expression for Even Numbers". Earn 90 XP and track your internship progress.

Already have an account? Sign in