Articles Posted in the " array_sum " Category

  • array_sum

    array_sum

    Syntax: number array_sum ( array $array ) Description: Calculate the sum of values in an array <?php $a = array(2, 4, 6, 8); echo "sum(a) = " . array_sum($a) . "\n"; $b = array("a" […]