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 try "Write an array_filter Expression for Even Numbers" free for 7 days, no card required. Earn 90 XP and track your internship progress.