Source Code:
(back to article)
<?php $array = array(1, 2, 3, 4, 5); $sum = array_sum($array); echo $sum; // Output: 15 ?>
Result:
Report an issue