← All tasks
What you'll do
Find the line where a function is expected to mutate the caller's array but can't, because PHP arrays are passed by value.
Scenario
Calling addItem($cart, 'apple') doesn't actually add anything to the caller's $cart array afterward.
Ready to try it?
Create a free account and subscribe to take "Fix a Function Expecting Array Mutation by Value". Earn 120 XP and track your internship progress.
Already have an account? Sign in