<?php function sum($carry, $item) { echo $carry."==".$item; exit; $carry += $item; return $carry; } $a = array(1, 2, 3, 4, 5); var_dump(array_reduce($a, "sum"));
You have javascript disabled. You will not be able to edit any code.