array_sum
Calculate the sum of values in an array
&reftitle.description;
intfloatarray_sum
arrayarray
array_sum returns the sum of values in an array.
&reftitle.parameters;
array
The input array.
&reftitle.returnvalues;
Returns the sum of values as an integer or float; 0 if the
array is empty.
&reftitle.examples;
array_sum examples
1.2, "b" => 2.3, "c" => 3.4);
echo "sum(b) = " . array_sum($b) . "\n";
?>
]]>
&example.outputs;