array_reduce in PHP

Syntax of array_reduce mixed array_reduce(array array, mixed callback[, int initial]) Returns a value derived by iteratively calling the given callback function with pairs of values from the array. If the third parameter is supplied, it, along with the first element in the array, is passed to the callback function for the initial call array_reduce in … Read more