Skip to content

ISet.remove() method

Marcel Kloubert edited this page Feb 22, 2015 · 1 revision

ISet->remove($item) method

Removes an item.

Syntax

public bool remove(mixed $item);

Parameters

Name Type Description
$item mixed The item to remove.

Result

Item was removed or not.

Examples

use \System\Collections\Generic;

$set = new Set();

$set->add('TM');
$set->add('MK');

$a1 = $set->remove('MK');    // (true)
$a2 = $set->remove('MK');    // (false)
Clone this wiki locally