« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 78 for Stack (0.001 sec.)
The Stack class | PHP 8.3 10262
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 structure 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
Ds\Stack::push — Pushes values onto the stack | PHP 8.3 9793
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] = ... d [4] => e [5] => f ) 他のマニュアルの関連ページ DuckDB Quack on WebAssembly Linux JM pthread_getattr_np(3) Docker docker stack DuckDB Deploying Quack Docker docker stack Linux JM pthread_attr_init(3) ...
https://man.mtool.work/php/8.3/ds-stack.push.html
Ds\Stack::pop — Removes and returns the value at the top of the stack | PHP 8.3 9766
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" ); var_dump ( $stack -> pop ()); var_dump ( $stack -> pop ()); var_dump ( $stack -> ... g(1) "b" string(1) "a" 他のマニュアルの関連ページ DuckDB Quack on WebAssembly Linux JM pthread_getattr_np(3) Docker docker stack DuckDB Deploying Quack Docker docker stack Linux JM pthread_attr_init(3) ...
https://man.mtool.work/php/8.3/ds-stack.pop.html
Ds\Stack::peek — Returns the value at the top of the stack | PHP 8.3 9656
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 -> pus ... h ( "a" ); $stack -> push ( "b" ); $stack -> push ( "c" ); var_dump ( $stack -> peek ()); ?> 上の例の出力は、 たとえば以下のようになります。 ... string(1) "c" 他のマニュアルの関連ページ DuckDB Quack on WebAssembly Linux JM pthread_getattr_np(3) Docker docker stack DuckDB Deploying Quack Docker docker stack Linux JM pthread_attr_init(3) ...
https://man.mtool.work/php/8.3/ds-stack.peek.html
Ds\Stack::clear — Removes all values | PHP 8.3 9587
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 ( ) 他のマニュアルの関連ページ Linux JM pthread_getattr_np(3) DuckDB ... Quack on WebAssembly DuckDB Deploying Quack Linux JM pthread_attr_init(3) Docker docker stack Docker docker stack ...
https://man.mtool.work/php/8.3/ds-stack.clear.html
Ds\Stack::__construct — Creates a new instance | PHP 8.3 9559
Ds\Stack::__construct (PECL ds >= 1.0.0) Ds\Stack::__construct — Creates a new instance 説明 public function Ds\Stack::__construct ( mixed $values = ? ) Creates a new instance, using either a traversable object or an array for the initial v ... alues . パラメータ values A traversable object or an array to use for the initial values. 例 例1 Ds\Stack::__construct() example <?php $stack = new \Ds\Stack (); print_r ( $stack ); $stack = new \Ds\Stack ([ 1 , 2 , 3 ]); print_ ... r ( $stack ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Stack Object ( ) Ds\Stack Object ( [0] => 3 [1] => 2 [2] => 1 ) 他 ... kDB Deploying Quack DuckDB Quack on WebAssembly Linux JM pthread_getattr_np(3) Linux JM pthread_attr_init(3) Docker docker stack Docker docker stack ...
https://man.mtool.work/php/8.3/ds-stack.construct.html
The Parle\Stack class | PHP 8.3 9532
The Parle\Stack class (PECL parle >= 0.7.0) はじめに Parle\Stack is a LIFO stack. The elements are inserted and removed only from one end. クラス概要 class Parle\Stack { /* プロパティ */ public bool $ empty = true ; public int $ size = 0 ; ... op ; /* メソッド */ public function pop (): void public function push ( mixed $item ): void } プロパティ empty Whether the stack is empty, readonly. size Stack size, readonly. top Element on the top of the stack. 目次 Parle\Stack::pop — Pop an item fr ... om the stack Parle\Stack::push — Push an item into the stack 他のマニュアルの関連ページ Linux JM pthread_getattr_np(3) Linux JM pthread ... _attr_init(3) DuckDB Quack on WebAssembly DuckDB Deploying Quack Docker docker stack Docker docker stack ...
https://man.mtool.work/php/8.3/class.parle-stack.html
Ds\Stack::copy — Returns a shallow copy of the stack | PHP 8.3 9394
Ds\Stack::copy (PECL ds >= 1.0.0) Ds\Stack::copy — Returns a shallow copy of the stack 説明 public function Ds\Stack::copy (): Ds\Stack Returns a shallow copy of the stack. パラメータ この関数にはパラメータはありません。 戻り値 Returns a sh ... allow copy of the stack. 例 例1 Ds\Stack::copy() example <?php $a = new \Ds\Stack ([ 1 , 2 , 3 ]); $b = $a -> copy (); // Updating the copy doesn' ... ffect the original $b -> push ( 4 ); print_r ( $a ); print_r ( $b ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Stack Object ( [0] => 3 [1] => 2 [2] => 1 ) Ds\Stack Object ( [0] => 4 [1] => 3 [2] => 2 [3] => 1 ) 他のマニュアルの関連ページ L ... ux JM pthread_getattr_np(3) DuckDB Quack on WebAssembly DuckDB Deploying Quack Linux JM pthread_attr_init(3) Docker docker stack Docker docker stack ...
https://man.mtool.work/php/8.3/ds-stack.copy.html
Ds\Stack::toArray — Converts the stack to an array | PHP 8.3 9366
Ds\Stack::toArray (PECL ds >= 1.0.0) Ds\Stack::toArray — Converts the stack to an array 説明 public function Ds\Stack::toArray (): array Converts the stack to an array . 注意 : Casting to an array is not supported yet. パラメータ この関数に ... はパラメータはありません。 戻り値 An array containing all the values in the same order as the stack. 例 例1 Ds\Stack::toArray() example <?php $stack = new \Ds\Stack ([ 1 , 2 , 3 ]); var_dump ( $stack -> toArray ()); ?> 上の ... 他のマニュアルの関連ページ DuckDB Quack on WebAssembly Linux JM pthread_getattr_np(3) DuckDB Deploying Quack Docker docker stack Linux JM pthread_attr_init(3) Docker docker stack ...
https://man.mtool.work/php/8.3/ds-stack.toarray.html
Ds\Stack::isEmpty — Returns whether the stack is empty | PHP 8.3 9311
Ds\Stack::isEmpty (PECL ds >= 1.0.0) Ds\Stack::isEmpty — Returns whether the stack is empty 説明 public function Ds\Stack::isEmpty (): bool Returns whether the stack is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns t ... rue if the stack is empty, false otherwise. 例 例1 Ds\Stack::isEmpty() example <?php $a = new \Ds\Stack ([ 1 , 2 , 3 ]); $b = new \Ds\Stack ... ux JM pthread_getattr_np(3) DuckDB Quack on WebAssembly DuckDB Deploying Quack Linux JM pthread_attr_init(3) Docker docker stack Docker docker stack ...
https://man.mtool.work/php/8.3/ds-stack.isempty.html
PREV 1 2 3 4 5 6 7 8 NEXT