PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Ds\Set::remove - Removes all given values from the set. | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Ds\Set::remove

(PECL ds >= 1.0.0)

Ds\Set::removeRemoves all given values from the set.

説明

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

Removes all given values from the set, ignoring any that are not in the set.

パラメータ

values

The values to remove.

返り値

値を返しません。

例1 Ds\Set::remove() example

<?php
$set 
= new \Ds\Set([12345]);

$set->remove(1);            // Remove 1
$set->remove(12);         // Can't find 1, but remove 2
$set->remove(...[34]);    // Remove 3 and 4

var_dump($set);
?>

上の例の出力は、 たとえば以下のようになります。

object(Ds\Set)#1 (1) {
  [0]=>
  int(5)
}

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Ds\Set::remove - Removes all given values from the set.」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Ds\Set::remove - Removes all given values from the set.」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: