Ds\Set::add

Ds\Set::add

(PECL ds >= 1.0.0)

Ds\Set::addAdds values to the set.

Description

public void Ds\Set::add ([ mixed $...values ] )

Adds all given values to the set that haven't already been added.

Note:

Values of type object are supported. If an object implements Ds\Hashable, equality will be determined by the object's equals function. If an object does not implement 登录查看完整内容