Mathematical Operations on Arrays in PHP
Given an array:
<?php
$arr = [1, 2, 3, 4, 5];
?>
Find the sum of the elements of this array.
Given an array:
<?php
$arr = [1, 2, 3, 4, 5];
?>
Find the product (multiplication) of the elements of this array.