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