Results of 1 - 10 of about 153 for stack (0.005 sec.)
- The Stack class 8486
- « Ds\Set::xor Ds\Stack::allocate » PHP Manual Data Structures The Stack class 検索 The Stack class (PECL ds >= 1.0.0) はじめに A Stack is a “last in, first out” or “LIFO” collection that only allows access to the value at the top of the str
... ucture and iterates in that order, destructively. Uses a Ds\Vector internally. クラス概要 class Ds\Stack implements Ds\Collection , ArrayAccess { /* メソッド */ public function allocate ( int $capacity ): void public function c ... apacity (): int public function clear (): void public function copy (): Ds\Stack public function isEmpty (): bool public function peek (): mixed public function pop (): mixed public function push ( mixed ... public function toArray (): array } 変更履歴 バージョン 説明 PECL ds 1.3.0 The class now implements ArrayAccess . 目次 Ds\Stack::allocate — Allocates enough memory for a required capacity Ds\Stack::capacity — Returns the current capacity Ds\Stack::cl ...
-
https://man.mtool.work/php/8.3/class.ds-stack.html
- The Stack class 8486
- « Ds\Set::xor Ds\Stack::allocate » PHP Manual Data Structures The Stack class 検索 The Stack class (PECL ds >= 1.0.0) はじめに A Stack is a “last in, first out” or “LIFO” collection that only allows access to the value at the top of the str
... ucture and iterates in that order, destructively. Uses a Ds\Vector internally. クラス概要 class Ds\Stack implements Ds\Collection , ArrayAccess { /* メソッド */ public function allocate ( int $capacity ): void public function c ... apacity (): int public function clear (): void public function copy (): Ds\Stack public function isEmpty (): bool public function peek (): mixed public function pop (): mixed public function push ( mixed ... public function toArray (): array } 変更履歴 バージョン 説明 PECL ds 1.3.0 The class now implements ArrayAccess . 目次 Ds\Stack::allocate — Allocates enough memory for a required capacity Ds\Stack::capacity — Returns the current capacity Ds\Stack::cl ...
-
https://man.mtool.work/php/8.3/class.ds-stack.html
- Pushes values onto the stack 8312
- « Ds\Stack::pop Ds\Stack::toArray » PHP Manual Ds\Stack Pushes values onto the stack 検索 Ds\Stack::push (PECL ds >= 1.0.0) Ds\Stack::push — Pushes values onto the stack 説明 public function Ds\Stack::push ( mixed ...$values ): void Pushes
... values onto the stack. パラメータ values The values to push onto the stack. 戻り値 値を返しません。 例 例1 Ds\Stack::push() example <?php $stack ... = new \Ds\Stack (); $stack -> push ( "a" ); $stack -> push ( "b" ); $stack -> push ( "c" , "d" ); $stack -> push (...[ "e" , "f" ]); print ... _r ( $stack ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Stack Object ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] = ...
-
https://man.mtool.work/php/8.3/ds-stack.push.html
- Pushes values onto the stack 8300
- « Ds\Stack::pop Ds\Stack::toArray » PHP Manual Ds\Stack Pushes values onto the stack 検索 Ds\Stack::push (PECL ds >= 1.0.0) Ds\Stack::push — Pushes values onto the stack 説明 public function Ds\Stack::push ( mixed ...$values ): void Pushes
... values onto the stack. パラメータ values The values to push onto the stack. 戻り値 値を返しません。 例 例1 Ds\Stack::push() example <?php $stack ... = new \Ds\Stack (); $stack -> push ( "a" ); $stack -> push ( "b" ); $stack -> push ( "c" , "d" ); $stack -> push (...[ "e" , "f" ]); print ... _r ( $stack ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Stack Object ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] = ...
-
https://man.mtool.work/php/8.3/ds-stack.push.html
- Removes and returns the value at the top of the stack 8277
- « Ds\Stack::peek Ds\Stack::push » PHP Manual Ds\Stack Removes and returns the value at the top of the stack 検索 Ds\Stack::pop (PECL ds >= 1.0.0) Ds\Stack::pop — Removes and returns the value at the top of the stack 説明 public function Ds\
... Stack::pop (): mixed Removes and returns the value at the top of the stack. パラメータ この関数にはパラメータはありません。 戻り値 The removed value which was at the top of the stack. エラー / 例外 ... UnderflowException if empty. 例 例1 Ds\Stack::pop() example <?php $stack = new \Ds\Stack (); $stack -> push ( "a" ); $stack -> push ( "b" ); $stack -> push ( "c" ); va ... r_dump ( $stack -> pop ()); var_dump ( $stack -> pop ()); var_dump ( $stack -> pop ()); ?> 上の例の出力は、 たとえば以下のようになります。 ...
-
https://man.mtool.work/php/8.3/ds-stack.pop.html
- Removes and returns the value at the top of the stack 8230
- « Ds\Stack::peek Ds\Stack::push » PHP Manual Ds\Stack Removes and returns the value at the top of the stack 検索 Ds\Stack::pop (PECL ds >= 1.0.0) Ds\Stack::pop — Removes and returns the value at the top of the stack 説明 public function Ds\
... Stack::pop (): mixed Removes and returns the value at the top of the stack. パラメータ この関数にはパラメータはありません。 戻り値 The removed value which was at the top of the stack. エラー / 例外 ... UnderflowException if empty. 例 例1 Ds\Stack::pop() example <?php $stack = new \Ds\Stack (); $stack -> push ( "a" ); $stack -> push ( "b" ); $stack -> push ( "c" ); va ... r_dump ( $stack -> pop ()); var_dump ( $stack -> pop ()); var_dump ( $stack -> pop ()); ?> 上の例の出力は、 たとえば以下のようになります。 ...
-
https://man.mtool.work/php/8.3/ds-stack.pop.html
- Returns the value at the top of the stack 8184
- « Ds\Stack::jsonSerialize Ds\Stack::pop » PHP Manual Ds\Stack Returns the value at the top of the stack 検索 Ds\Stack::peek (PECL ds >= 1.0.0) Ds\Stack::peek — Returns the value at the top of the stack 説明 public function Ds\Stack::peek ()
... : mixed Returns the value at the top of the stack, but does not remove it. パラメータ この関数にはパラメータはありません。 戻り値 The value at the top of the stack. エラー ... / 例外 UnderflowException if empty. 例 例1 Ds\Stack::peek() example <?php $stack = new \Ds\Stack (); $stack -> push ( "a" ); $stack -> push ( "b" ); $stack -> push ( "c" ); v ... ar_dump ( $stack -> peek ()); ?> 上の例の出力は、 たとえば以下のようになります。 string(1) "c" 関連キーワード: stack Stack peek push jsonSe ...
-
https://man.mtool.work/php/8.3/ds-stack.peek.html
- Returns the value at the top of the stack 8161
- « Ds\Stack::jsonSerialize Ds\Stack::pop » PHP Manual Ds\Stack Returns the value at the top of the stack 検索 Ds\Stack::peek (PECL ds >= 1.0.0) Ds\Stack::peek — Returns the value at the top of the stack 説明 public function Ds\Stack::peek ()
... : mixed Returns the value at the top of the stack, but does not remove it. パラメータ この関数にはパラメータはありません。 戻り値 The value at the top of the stack. エラー ... / 例外 UnderflowException if empty. 例 例1 Ds\Stack::peek() example <?php $stack = new \Ds\Stack (); $stack -> push ( "a" ); $stack -> push ( "b" ); $stack -> push ( "c" ); v ... ar_dump ( $stack -> peek ()); ?> 上の例の出力は、 たとえば以下のようになります。 string(1) "c" 関連キーワード: stack Stack value top peek R ...
-
https://man.mtool.work/php/8.3/ds-stack.peek.html
- Removes all values 8103
- « Ds\Stack::capacity Ds\Stack::__construct » PHP Manual Ds\Stack Removes all values 検索 Ds\Stack::clear (PECL ds >= 1.0.0) Ds\Stack::clear — Removes all values 説明 public function Ds\Stack::clear (): void Removes all values from the stack
... . パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\Stack::clear() example <?php $stack = new \Ds\Stack ([ 1 , 2 , 3 ]); print_r ( $stack ); $stack -> clear (); print_r ( $stack ); ... ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Stack Object ( [0] => 3 [1] => 2 [2] => 1 ) Ds\Stack Object ( ) 関連キーワード: Stack clear stack Removes values print capacity ...
-
https://man.mtool.work/php/8.3/ds-stack.clear.html
- Removes all values 8056
- « Ds\Stack::capacity Ds\Stack::__construct » PHP Manual Ds\Stack Removes all values 検索 Ds\Stack::clear (PECL ds >= 1.0.0) Ds\Stack::clear — Removes all values 説明 public function Ds\Stack::clear (): void Removes all values from the stack
... . パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\Stack::clear() example <?php $stack = new \Ds\Stack ([ 1 , 2 , 3 ]); print_r ( $stack ); $stack -> clear (); print_r ( $stack ); ... ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Stack Object ( [0] => 3 [1] => 2 [2] => 1 ) Ds\Stack Object ( ) 関連キーワード: Stack clear stack Removes values パラメータ prin ...
-
https://man.mtool.work/php/8.3/ds-stack.clear.html