Question: The PHP function array_reduce() takes a callback function that accepts a value carried over each iteration and the current item in the array, and reduces an array to a single value. Which code sample will sum and output the values in the provided array?

  1. [ ]
  2. [ ]
  3. [ ]
  4. [x]

Answer: The correct answer of the above question is Option D:[x]