-
-
Notifications
You must be signed in to change notification settings - Fork 13
ISet.remove() method
Marcel Kloubert edited this page Feb 22, 2015
·
1 revision
Removes an item.
public bool remove(mixed $item);
Name | Type | Description |
---|---|---|
$item | mixed | The item to remove. |
Item was removed or not.
use \System\Collections\Generic;
$set = new Set();
$set->add('TM');
$set->add('MK');
$a1 = $set->remove('MK'); // (true)
$a2 = $set->remove('MK'); // (false)