Source Code:
(back to article)
<?php $numbers = array(1, 2, 3, 4, 5); $sum = array_sum($numbers); echo "The sum of the numbers is: " . $sum; ?>
Result:
Report an issue