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

Ds\Queue::push - Pushes values into the queue. | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Ds\Queue::push

(PECL ds >= 1.0.0)

Ds\Queue::pushPushes values into the queue.

説明

public void Ds\Queue::push ([ mixed $...values ] )

Pushes values into the queue.

パラメータ

values

The values to push into the queue.

返り値

値を返しません。

例1 Ds\Queue::push() example

<?php
$queue 
= new \Ds\Queue();

$queue->push("a");
$queue->push("b");
$queue->push("c""d");
$queue->push(...["e""f"]);

print_r($queue);
?>

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

Ds\Queue Object
(
    [0] => a
    [1] => b
    [2] => c
    [3] => d
    [4] => e
    [5] => f
)

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

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