Source Code:
(back to article)
<?php $a = [1, 2, 3]; $b = [10, 20, 30]; function sum($a, $b) { return $a + $b; } $c = array_map('sum', $a, $b); print_r($c); ?>
Result:
Report an issue