Results of 1 - 10 of about 185 for queue (0.003 sec.)
- The Queue class 7977
- « Ds\Stack::toArray Ds\Queue::allocate » PHP Manual Data Structures The Queue class 検索 The Queue class (PECL ds >= 1.0.0) はじめに A Queue is a “first in, first out” or “FIFO” collection that only allows access to the value at the front o
... f the queue and iterates in that order, destructively. クラス概要 class Ds\Queue implements Ds\Collection , ArrayAccess { /* 定数 */ c ... locate ( int $capacity ): void public function capacity (): int public function clear (): void public function copy (): Ds\Queue public function isEmpty (): bool public function peek (): mixed public function pop (): mixed public function push ( mixed ... ...$values ): void public function toArray (): array } 定義済み定数 Ds\Queue::MIN_CAPACITY 変更履歴 バージョン 説明 PECL ds 1.3.0 The class now implements ArrayAccess . 目次 Ds\Queue::allocate — Allo ...
-
https://man.mtool.work/php/8.3/class.ds-queue.html
- The Queue class 7955
- « Ds\Stack::toArray Ds\Queue::allocate » PHP Manual Data Structures The Queue class 検索 The Queue class (PECL ds >= 1.0.0) はじめに A Queue is a “first in, first out” or “FIFO” collection that only allows access to the value at the front o
... f the queue and iterates in that order, destructively. クラス概要 class Ds\Queue implements Ds\Collection , ArrayAccess { /* 定数 */ c ... locate ( int $capacity ): void public function capacity (): int public function clear (): void public function copy (): Ds\Queue public function isEmpty (): bool public function peek (): mixed public function pop (): mixed public function push ( mixed ... ...$values ): void public function toArray (): array } 定義済み定数 Ds\Queue::MIN_CAPACITY 変更履歴 バージョン 説明 PECL ds 1.3.0 The class now implements ArrayAccess . 目次 Ds\Queue::allocate — Allo ...
-
https://man.mtool.work/php/8.3/class.ds-queue.html
- Pushes values into the queue 7691
- « Ds\Queue::pop Ds\Queue::toArray » PHP Manual Ds\Queue Pushes values into the queue 検索 Ds\Queue::push (PECL ds >= 1.0.0) Ds\Queue::push — Pushes values into the queue 説明 public function Ds\Queue::push ( mixed ...$values ): void 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] = ...
-
https://man.mtool.work/php/8.3/ds-queue.push.html
- Pushes values into the queue 7669
- « Ds\Queue::pop Ds\Queue::toArray » PHP Manual Ds\Queue Pushes values into the queue 検索 Ds\Queue::push (PECL ds >= 1.0.0) Ds\Queue::push — Pushes values into the queue 説明 public function Ds\Queue::push ( mixed ...$values ): void 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] = ...
-
https://man.mtool.work/php/8.3/ds-queue.push.html
- Removes and returns the value at the front of the queue 7658
- « Ds\Queue::peek Ds\Queue::push » PHP Manual Ds\Queue Removes and returns the value at the front of the queue 検索 Ds\Queue::pop (PECL ds >= 1.0.0) Ds\Queue::pop — Removes and returns the value at the front of the queue 説明 public function
... Ds\Queue::pop (): mixed Removes and returns the value at the front of the queue. パラメータ この関数にはパラメータはありません。 戻 ... り値 The removed value which was at the front of the queue. エラー / 例外 UnderflowException if empty. 例 例1 Ds\Queue::pop() example <?php $queue = new \Ds\Queue (); $queue -> push ... ( "a" ); $queue -> push ( "b" ); $queue -> push ( "c" ); var_dump ( $queue -> pop ()); var_dump ( $queue -> pop ()); var_dump ( $queue -> ...
-
https://man.mtool.work/php/8.3/ds-queue.pop.html
- Removes and returns the value at the front of the queue 7614
- « Ds\Queue::peek Ds\Queue::push » PHP Manual Ds\Queue Removes and returns the value at the front of the queue 検索 Ds\Queue::pop (PECL ds >= 1.0.0) Ds\Queue::pop — Removes and returns the value at the front of the queue 説明 public function
... Ds\Queue::pop (): mixed Removes and returns the value at the front of the queue. パラメータ この関数にはパラメータはありません。 戻 ... り値 The removed value which was at the front of the queue. エラー / 例外 UnderflowException if empty. 例 例1 Ds\Queue::pop() example <?php $queue = new \Ds\Queue (); $queue -> push ... ( "a" ); $queue -> push ( "b" ); $queue -> push ( "c" ); var_dump ( $queue -> pop ()); var_dump ( $queue -> pop ()); var_dump ( $queue -> ...
-
https://man.mtool.work/php/8.3/ds-queue.pop.html
- Returns the value at the front of the queue 7570
- « Ds\Queue::jsonSerialize Ds\Queue::pop » PHP Manual Ds\Queue Returns the value at the front of the queue 検索 Ds\Queue::peek (PECL ds >= 1.0.0) Ds\Queue::peek — Returns the value at the front of the queue 説明 public function Ds\Queue::pee
... k (): mixed Returns the value at the front of the queue, but does not remove it. パラメータ この関数にはパラメータはありません。 戻り値 The value at the front of the queue. エラー ... / 例外 UnderflowException if empty. 例 例1 Ds\Queue::peek() example <?php $queue = new \Ds\Queue (); $queue -> push ( "a" ); $queue -> push ( "b" ); $queue -> push ( "c" ); v ... ar_dump ( $queue -> peek ()); ?> 上の例の出力は、 たとえば以下のようになります。 string(1) "a" 関連キーワード: queue Queue front peek push ...
-
https://man.mtool.work/php/8.3/ds-queue.peek.html
- Returns the value at the front of the queue 7548
- « Ds\Queue::jsonSerialize Ds\Queue::pop » PHP Manual Ds\Queue Returns the value at the front of the queue 検索 Ds\Queue::peek (PECL ds >= 1.0.0) Ds\Queue::peek — Returns the value at the front of the queue 説明 public function Ds\Queue::pee
... k (): mixed Returns the value at the front of the queue, but does not remove it. パラメータ この関数にはパラメータはありません。 戻り値 The value at the front of the queue. エラー ... / 例外 UnderflowException if empty. 例 例1 Ds\Queue::peek() example <?php $queue = new \Ds\Queue (); $queue -> push ( "a" ); $queue -> push ( "b" ); $queue -> push ( "c" ); v ... ar_dump ( $queue -> peek ()); ?> 上の例の出力は、 たとえば以下のようになります。 string(1) "a" 関連キーワード: queue Queue value front peek ...
-
https://man.mtool.work/php/8.3/ds-queue.peek.html
- Removes all values 7482
- « Ds\Queue::capacity Ds\Queue::__construct » PHP Manual Ds\Queue Removes all values 検索 Ds\Queue::clear (PECL ds >= 1.0.0) Ds\Queue::clear — Removes all values 説明 public function Ds\Queue::clear (): void Removes all values from the queue
... . パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\Queue::clear() example <?php $queue = new \Ds\Queue ([ 1 , 2 , 3 ]); print_r ( $queue ); $queue -> clear (); print_r ( $queue ); ... ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Queue Object ( [0] => 1 [1] => 2 [2] => 3 ) Ds\Queue Object ( ) 関連キーワード: Queue clear queue Removes values print capacity ...
-
https://man.mtool.work/php/8.3/ds-queue.clear.html
- Removes all values 7438
- « Ds\Queue::capacity Ds\Queue::__construct » PHP Manual Ds\Queue Removes all values 検索 Ds\Queue::clear (PECL ds >= 1.0.0) Ds\Queue::clear — Removes all values 説明 public function Ds\Queue::clear (): void Removes all values from the queue
... . パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\Queue::clear() example <?php $queue = new \Ds\Queue ([ 1 , 2 , 3 ]); print_r ( $queue ); $queue -> clear (); print_r ( $queue ); ... ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Queue Object ( [0] => 1 [1] => 2 [2] => 3 ) Ds\Queue Object ( ) 関連キーワード: Queue clear queue Removes values パラメータ prin ...
-
https://man.mtool.work/php/8.3/ds-queue.clear.html