Ds\Sequence::sum
Ds\Sequence::sum
(PECL ds >= 1.0.0)
Ds\Sequence::sum — Returns the sum of all values in the sequence.
Description
abstract public number Ds\Sequence::sum ( void )
Returns the sum of all values in the sequence.
Note:
Arrays and objects are considered equal to zero when calculating the sum.
Parameters
This function has no parameters.