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

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

  

Ds\Deque::clear

(PECL ds >= 1.0.0)

Ds\Deque::clearRemoves all values from the deque.

説明

public void Ds\Deque::clear ( void )

Removes all values from the deque.

パラメータ

この関数にはパラメータはありません。

返り値

値を返しません。

例1 Ds\Deque::clear() example

<?php
$deque 
= new \Ds\Deque([123]);
print_r($deque);

$deque->clear();
print_r($deque);
?>

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

Ds\Deque Object
(
    [0] => 1
    [1] => 2
    [2] => 3
)
Ds\Deque Object
(
)

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

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