This question has already been answered:
- Calculate the sum of the elements of the array 4 responses
Hello. There is an array in which numbers are stored. How to add them and get the sum of all the numbers in the array?
$n_itog = implode($arrst, '+'); $itog = $n_itog; echo $itog; $ arrst is an array with numbers. Array ([0] => 3352620 [1] => 56815)