Returns the sum of values as an integer or float; 0 if the
array is empty.
Changelog
Version
Description
8.3.0
Now emits E_WARNING when array values
cannot be converted to int or float.
Previously arrays and objects where ignored whilst every other value was cast to int.
Moreover, objects that define a numeric cast (e.g. GMP) are now cast instead of ignored.