Programming-Idioms

History of Idiom 54 > diff from v2 to v3

Edit summary for version 3 :

Version 2

2015-07-31, 20:46:55

Version 3

2015-08-19, 07:55:25

Idiom #54 Compute sum of integers

Calculate the sum s of integer list x.

Idiom #54 Compute sum of integers

Calculate the sum s of integer list x.

Code
$s = array_sum($x);