Write the PHP expression that sums all values in $numbers using array_reduce.
You want to compute a total using a reduce-style operation instead of array_sum().
Ready to try it?
Create a free account and subscribe to take "Write an array_reduce Expression to Sum Values". Earn 90 XP and track your internship progress.
Already have an account? Sign in