$numbers = [50, 75, 100, 125]; $reduction = array_reduce($numbers, function($carry, $item) { return $carry * (1 - $item/100); }, 1); $percentage_reduction = (1 - $reduction) * 100; echo "The percentage reduction is: " . $percentage_reduction . "%";In this example, we have an array of numbers representing discounts offered on a product. We use the array_reduce() function to calculate the total reduction by multiplying the previous value with (1 - current value/100), where the initial value is 1. We then calculate the percentage reduction by subtracting the result from 1 and multiplying the difference by 100. The getReduction method is a part of the "math" package library in PHP.