« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 26 for unshift (0.002 sec.)
Ds\Deque::unshift — Adds values to the front of the deque | PHP 8.3 12282
Ds\Deque::unshift (PECL ds >= 1.0.0) Ds\Deque::unshift — Adds values to the front of the deque 説明 public function Ds\Deque::unshift ( mixed $values = ? ): void Adds values to the front of the deque, moving all the current values forward t ... que. 注意 : Multiple values will be added in the same order that they are passed. 戻り値 値を返しません。 例 例1 Ds\Deque::unshift() example <?php $deque = new \Ds\Deque ([ 1 , 2 , 3 ]); $deque -> unshift ( "a" ); $deque -> unshift ( "b" , "c" ); print_ ...
https://man.mtool.work/php/8.3/ds-deque.unshift.html
Ds\Sequence::unshift — Adds values to the front of the sequence | PHP 8.3 12216
Ds\Sequence::unshift (PECL ds >= 1.0.0) Ds\Sequence::unshift — Adds values to the front of the sequence 説明 abstract public function Ds\Sequence::unshift ( mixed $values = ? ): void Adds values to the front of the sequence, moving all the ... . 注意 : Multiple values will be added in the same order that they are passed. 戻り値 値を返しません。 例 例1 Ds\Sequence::unshift() example <?php $sequence = new \Ds\Vector ([ 1 , 2 , 3 ]); $sequence -> unshift ( "a" ); $sequence -> unshift ( "b" , "c" ...
https://man.mtool.work/php/8.3/ds-sequence.unshift.html
Ds\Vector::unshift — Adds values to the front of the vector | PHP 8.3 12001
Ds\Vector::unshift (PECL ds >= 1.0.0) Ds\Vector::unshift — Adds values to the front of the vector 説明 public function Ds\Vector::unshift ( mixed $values = ? ): void Adds values to the front of the vector, moving all the current values forw ... or. 注意 : Multiple values will be added in the same order that they are passed. 戻り値 値を返しません。 例 例1 Ds\Vector::unshift() example <?php $vector = new \Ds\Vector ([ 1 , 2 , 3 ]); $vector -> unshift ( "a" ); $vector -> unshift ( "b" , "c" ); pr ...
https://man.mtool.work/php/8.3/ds-vector.unshift.html
array_unshift — 一つ以上の要素を配列の最初に加える | PHP 8.3 10612
array_unshift (PHP 4, PHP 5, PHP 7, PHP 8) array_unshift — 一つ以上の要素を配列の最初に加える 説明 function array_unshift ( array &$array , mixed ...$values ): int array_unshift() は、 array の先頭に指定された要素を加えます。リストの要素は全 ... 、1 つのパラメータでのみ呼び出すことができるようになりました。 前は、少なくとも 2 つのパラメータが必要でした。 例 例1 array_unshift() の例 <?php $queue = [ "orange" , "banana" ]; array_unshift ( $queue , "apple" , "raspberry" ); var_dump ( $queue ); ?> 上 ... Hybrid' => 'purple' , 'Imperator' => 'orange' , ], 'cucumber' => [ 'Kirby' => 'green' , 'Gherkin' => 'green' , ], ]; array_unshift ( $foods , $vegetables ); var_dump ( $foods ); ?> 上の例の出力は以下となります。 array(3) { [0]=> array(3) { ["lettuce"]=> ...
https://man.mtool.work/php/8.3/function.array-unshift.html
SplDoublyLinkedList::unshift — 双方向リンクリストの先頭に要素を追加する | PHP 8... 10117
SplDoublyLinkedList::unshift (PHP 5 >= 5.3.0, PHP 7, PHP 8) SplDoublyLinkedList::unshift — 双方向リンクリストの先頭に要素を追加する 説明 public function SplDoublyLinkedList::unshift ( mixed $value ): void value を双方向リンクリストの先頭に追 ...
https://man.mtool.work/php/8.3/spldoublylinkedlist.unshift.html
The Deque class | PHP 8.3 8794
The Deque class (PECL ds >= 1.0.0) はじめに A Deque (pronounced “deck”) is a sequence of values in a contiguous buffer that grows and shrinks automatically. The name is a common abbreviation of “double-ended queue” and is used internally by ... “wrap around” the end of the buffer, which avoids the need to move other values around to make room. This makes shift and unshift very fast — something a Ds\Vector can't compete with. Accessing a value by index requires a translation between the index ... alues. Automatically frees allocated memory when its size drops low enough. get() , set() , push() , pop() , shift() , and unshift() are all O(1). Weaknesses Capacity must be a power of 2. insert() and remove() are O(n). クラス概要 class Ds\Deque implem ... callable $comparator = ? ): Ds\Deque public function sum (): int | float public function toArray (): array public function unshift ( mixed $values = ? ): void } 定義済み定数 Ds\Deque::MIN_CAPACITY 変更履歴 バージョン 説明 PECL ds 1.3.0 The class now imp ...
https://man.mtool.work/php/8.3/class.ds-deque.html
The Vector class | PHP 8.3 8315
The Vector class (PECL ds >= 1.0.0) はじめに A Vector is a sequence of values in a contiguous buffer that grows and shrinks automatically. It's the most efficient sequential structure because a value's index is a direct mapping to its index ... s low enough. Capacity does not have to be a power of 2. get() , set() , push() , pop() are all O(1). Weaknesses shift() , unshift() , insert() and remove() are all O(n). クラス概要 class Ds\Vector implements Ds\Sequence , ArrayAccess { /* 定数 */ const ... allable $comparator = ? ): Ds\Vector public function sum (): int | float public function toArray (): array public function unshift ( mixed $values = ? ): void } 定義済み定数 Ds\Vector::MIN_CAPACITY 変更履歴 バージョン 説明 PECL ds 1.3.0 The class now im ... \Vector::sum — Returns the sum of all values in the vector Ds\Vector::toArray — Converts the vector to an array Ds\Vector::unshift — Adds values to the front of the vector 他のマニュアルの関連ページ DuckDB Vector Similarity Search Extension DuckDB Execu ...
https://man.mtool.work/php/8.3/class.ds-vector.html
The Sequence interface | PHP 8.3 7819
The Sequence interface (PECL ds >= 1.0.0) はじめに A Sequence describes the behaviour of values arranged in a single, linear dimension. Some languages refer to this as a "List". It's similar to an array that uses incremental integer keys, w ... ion sorted ( callable $comparator = ? ): Ds\Sequence abstract public function sum (): int | float abstract public function unshift ( mixed $values = ? ): void /* 継承したメソッド */ public function Ds\Collection::clear (): void public function Ds\Collec ... Ds\Sequence::sorted — Returns a sorted copy Ds\Sequence::sum — Returns the sum of all values in the sequence Ds\Sequence::unshift — Adds values to the front of the sequence 他のマニュアルの関連ページ Python collections.abc Linux JM find(1) DuckDB Struc ...
https://man.mtool.work/php/8.3/class.ds-sequence.html
SplDoublyLinkedList クラス | PHP 8.3 7819
SplDoublyLinkedList クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8) はじめに SplDoublyLinkedList クラスは、双方向リンクリストの主要な機能を提供します。 クラス概要 class SplDoublyLinkedList implements Iterator , Countable , ArrayAccess , Serializable ... function shift (): mixed public function top (): mixed public function unserialize ( string $data ): void public function unshift ( mixed $value ): void public function valid (): bool } 定義済み定数 イテレーションの方向 SplDoublyLinkedList::IT_MODE_LIF ... ンクリストの最後のノードを取得する SplDoublyLinkedList::unserialize — ストレージをアンシリアライズする SplDoublyLinkedList::unshift — 双方向リンクリストの先頭に要素を追加する SplDoublyLinkedList::valid — 双方向リンクリストにまだノードがあるかどうかを調べ ...
https://man.mtool.work/php/8.3/class.spldoublylinkedlist.html
Data Structures | PHP 8.3 7686
Data Structures はじめに Efficient data structures for PHP 7, provided as an alternative to the array . See » this blog post for benchmarks, discussion and frequently asked questions. インストール/設定 要件 インストール手順 例 Ds\Collection ... Ds\Sequence::sorted — Returns a sorted copy Ds\Sequence::sum — Returns the sum of all values in the sequence Ds\Sequence::unshift — Adds values to the front of the sequence Ds\Vector — The Vector class Ds\Vector::allocate — Allocates enough memory for ... \Vector::sum — Returns the sum of all values in the vector Ds\Vector::toArray — Converts the vector to an array Ds\Vector::unshift — Adds values to the front of the vector Ds\Deque — The Deque class Ds\Deque::allocate — Allocates enough memory for a req ... py Ds\Deque::sum — Returns the sum of all values in the deque Ds\Deque::toArray — Converts the deque to an array Ds\Deque::unshift — Adds values to the front of the deque Ds\Map — The Map class Ds\Map::allocate — Allocates enough memory for a required c ...
https://man.mtool.work/php/8.3/book.ds.html
PREV 1 2 3 NEXT