Skip to content

Latest commit

 

History

History
 
 

array-sum

Calculate the sum of an array which contains integers and other arrays with integers. For example:

array_sum([1,2,[3,4,[5]]])

would return 15.