The array_sum() function used for the sum of values in an array.
Syntax
array_sum(array)
Example
$array=array(2,5,5); echo array_sum($array);
Output
12
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.