PHP Manual: array_sum
array_sum
Description
number array_sum ( array array )array_sum() returns the sum of values in an array as an integer or float.
Note: PHP versions prior to 4.2.1 modified the passed array itself and converted strings to numbers (which most of the time converted them to zero, depending on their value).