array_sum

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
array_sum - Calculate the sum of values in an array

Example #1 array_sum examples

Result: sum(a) = 20 sum(b) = 6.9
PHP Version:


Example #2 of array_sum

PHP Version:


Function array_sum:

Arrays Functions

Most used PHP functions