PHP array_sum() Function returns the sum all values of array. An array_sum() function is built-in function in PHP.
Syntax :
array_sum(array $array);
Parameter,
$array : Required. It is input array.
Return : It returns addition of values in an array. The sum of values are an integer or float.
Let's see below example to understand php array_sum() Function in details.
Comments