Show Output
Example of Computing Sum of PHP Array Values
1.5, "b" => 2.5, "c" => 4.6, "d" => 10.4); echo 'The sum of values of $array1 is - ' . array_sum($array1); echo "
"; echo 'The sum of values of $array2 is - ' . array_sum($array2); ?>