The array_sum() function returns the sum of all the values in the array.
Syntax:array_sum(array)
In above syntax, "array" specifies an array.
<?php
$arr=array("A"=>97.2,"B"=>1.7,"C"=>9.6);
echo array_sum($arr);
?>
Output:
Others
Languages
Frameworks
Web / Design
Mobile Technology
Sql & Technology
R4R