Source Code:
(back to article)
<?php $numbers = [1, 2, 3, 4, 5]; $average = array_sum($numbers) / count($numbers); echo $average;
Result:
Report an issue