Ds\Set::sum

Ds\Set::sum

(PECL ds >= 1.0.0)

Ds\Set::sumReturns 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.

Return Values<