← All tasks
What you'll do
Write the PHP expression that sorts an array of associative arrays $people by their 'age' key ascending.
Scenario
You have an array of ['name' => ..., 'age' => ...] entries and need them sorted youngest first.
Ready to try it?
Create a free account and subscribe to take "Write a usort Expression With a Custom Comparator". Earn 90 XP and track your internship progress.
Already have an account? Sign in