array_reduce

PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8
array_reduce - Iteratively reduce the array to a single value using a callback function
Manual
Code Examples

Example #1 array_reduce example

PHP Version: