« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 145 for sequence (0.003 sec.)
The Sequence interface 8119
« Ds\Hashable::hash Ds\Sequence::allocate » PHP Manual Data Structures The Sequence interface 検索 The Sequence interface (PECL ds >= 1.0.0) はじめに A Sequence describes the behaviour of values arranged in a single, linear dimension. Some ... rned with keys). A more efficient alternative to SplDoublyLinkedList and SplFixedArray . インターフェイス概要 interface Ds\Sequence extends Ds\Collection , ArrayAccess { /* メソッド */ abstract public function allocate ( int $capacity ): void abstract pu ... bstract public function contains ( mixed ...$values ): bool abstract public function filter ( callable $callback = ? ): Ds\Sequence abstract public function find ( mixed $value ): mixed abstract public function first (): mixed abstract public function ge ... string $glue = ? ): string abstract public function last (): mixed abstract public function map ( callable $callback ): Ds\Sequence abstract public function merge ( mixed $values ): Ds\Sequence abstract public function pop (): mixed abstract public funct ...
https://man.mtool.work/php/8.3/class.ds-sequence.html
The Sequence interface 8119
« Ds\Hashable::hash Ds\Sequence::allocate » PHP Manual Data Structures The Sequence interface 検索 The Sequence interface (PECL ds >= 1.0.0) はじめに A Sequence describes the behaviour of values arranged in a single, linear dimension. Some ... rned with keys). A more efficient alternative to SplDoublyLinkedList and SplFixedArray . インターフェイス概要 interface Ds\Sequence extends Ds\Collection , ArrayAccess { /* メソッド */ abstract public function allocate ( int $capacity ): void abstract pu ... bstract public function contains ( mixed ...$values ): bool abstract public function filter ( callable $callback = ? ): Ds\Sequence abstract public function find ( mixed $value ): mixed abstract public function first (): mixed abstract public function ge ... string $glue = ? ): string abstract public function last (): mixed abstract public function map ( callable $callback ): Ds\Sequence abstract public function merge ( mixed $values ): Ds\Sequence abstract public function pop (): mixed abstract public funct ...
https://man.mtool.work/php/8.3/class.ds-sequence.html
Returns a sub-sequence of a given range 7671
« Ds\Sequence::shift Ds\Sequence::sort » PHP Manual Ds\Sequence Returns a sub-sequence of a given range 検索 Ds\Sequence::slice (PECL ds >= 1.0.0) Ds\Sequence::slice — Returns a sub-sequence of a given range 説明 abstract public function Ds ... \Sequence::slice ( int $index , int $length = ? ): Ds\Sequence Creates a sub-sequence of a given range. パラメータ index The index a ... t which the sub-sequence starts. If positive, the sequence will start at that index in the sequence. If negative, the sequence will start that far ... from the end. length If a length is given and is positive, the resulting sequence will have up to that many values in it. If the length results in an overflow, only values up to the end of the sequence wi ...
https://man.mtool.work/php/8.3/ds-sequence.slice.html
Returns a sub-sequence of a given range 7671
« Ds\Sequence::shift Ds\Sequence::sort » PHP Manual Ds\Sequence Returns a sub-sequence of a given range 検索 Ds\Sequence::slice (PECL ds >= 1.0.0) Ds\Sequence::slice — Returns a sub-sequence of a given range 説明 abstract public function Ds ... \Sequence::slice ( int $index , int $length = ? ): Ds\Sequence Creates a sub-sequence of a given range. パラメータ index The index a ... t which the sub-sequence starts. If positive, the sequence will start at that index in the sequence. If negative, the sequence will start that far ... from the end. length If a length is given and is positive, the resulting sequence will have up to that many values in it. If the length results in an overflow, only values up to the end of the sequence wi ...
https://man.mtool.work/php/8.3/ds-sequence.slice.html
Rotates the sequence by a given number of rotations 7576
« Ds\Sequence::reversed Ds\Sequence::set » PHP Manual Ds\Sequence Rotates the sequence by a given number of rotations 検索 Ds\Sequence::rotate (PECL ds >= 1.0.0) Ds\Sequence::rotate — Rotates the sequence by a given number of rotations 説明 ... abstract public function Ds\Sequence::rotate ( int $rotations ): void Rotates the sequence by a given number of rotations, which is equivalent to successively ... calling $sequence->push($sequence->shift()) if the number of rotations is positive, or $sequence->unshift($sequence->pop()) if negative. パラ ... メータ rotations The number of times the sequence should be rotated. 戻り値 値を返しません。. The sequence of the current instance will be rotated. 例 例1 Ds\Sequence::rota ...
https://man.mtool.work/php/8.3/ds-sequence.rotate.html
Rotates the sequence by a given number of rotations 7576
« Ds\Sequence::reversed Ds\Sequence::set » PHP Manual Ds\Sequence Rotates the sequence by a given number of rotations 検索 Ds\Sequence::rotate (PECL ds >= 1.0.0) Ds\Sequence::rotate — Rotates the sequence by a given number of rotations 説明 ... abstract public function Ds\Sequence::rotate ( int $rotations ): void Rotates the sequence by a given number of rotations, which is equivalent to successively ... calling $sequence->push($sequence->shift()) if the number of rotations is positive, or $sequence->unshift($sequence->pop()) if negative. パラ ... メータ rotations The number of times the sequence should be rotated. 戻り値 値を返しません。. The sequence of the current instance will be rotated. 例 例1 Ds\Sequence::rota ...
https://man.mtool.work/php/8.3/ds-sequence.rotate.html
Determines if the sequence contains given values 7458
« Ds\Sequence::capacity Ds\Sequence::filter » PHP Manual Ds\Sequence Determines if the sequence contains given values 検索 Ds\Sequence::contains (PECL ds >= 1.0.0) Ds\Sequence::contains — Determines if the sequence contains given values 説明 ... abstract public function Ds\Sequence::contains ( mixed ...$values ): bool Determines if the sequence contains all values. パラメータ values Values to check. 戻 ... り値 false if any of the provided values are not in the sequence, true otherwise. 例 例1 Ds\Sequence::contains() example <?php $sequence = new \Ds\Vector ([ 'a' , 'b' , 'c' , 1 , 2 , 3 ]) ... ; var_dump ( $sequence -> contains ( 'a' )); // true var_dump ( $sequence -> contains ( 'a' , 'b' )); // true var_dump ( $sequence -> contains ( ...
https://man.mtool.work/php/8.3/ds-sequence.contains.html
Determines if the sequence contains given values 7458
« Ds\Sequence::capacity Ds\Sequence::filter » PHP Manual Ds\Sequence Determines if the sequence contains given values 検索 Ds\Sequence::contains (PECL ds >= 1.0.0) Ds\Sequence::contains — Determines if the sequence contains given values 説明 ... abstract public function Ds\Sequence::contains ( mixed ...$values ): bool Determines if the sequence contains all values. パラメータ values Values to check. 戻 ... り値 false if any of the provided values are not in the sequence, true otherwise. 例 例1 Ds\Sequence::contains() example <?php $sequence = new \Ds\Vector ([ 'a' , 'b' , 'c' , 1 , 2 , 3 ]) ... ; var_dump ( $sequence -> contains ( 'a' )); // true var_dump ( $sequence -> contains ( 'a' , 'b' )); // true var_dump ( $sequence -> contains ( ...
https://man.mtool.work/php/8.3/ds-sequence.contains.html
Adds values to the end of the sequence 7399
« Ds\Sequence::pop Ds\Sequence::reduce » PHP Manual Ds\Sequence Adds values to the end of the sequence 検索 Ds\Sequence::push (PECL ds >= 1.0.0) Ds\Sequence::push — Adds values to the end of the sequence 説明 abstract public function Ds\Sequence ... uence::push ( mixed ...$values ): void Adds values to the end of the sequence. パラメータ values The values to add. 戻り値 値を返しません。 例 例1 Ds\Sequence::push() example <?php $sequence = new \Ds ... \Vector (); $sequence -> push ( "a" ); $sequence -> push ( "b" ); $sequence -> push ( "c" , "d" ); $sequence -> push (...[ "e" , "f" ]); print_r ... ( $sequence ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Vector Object ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] ...
https://man.mtool.work/php/8.3/ds-sequence.push.html
Returns the sum of all values in the sequence 7399
« Ds\Sequence::sorted Ds\Sequence::unshift » PHP Manual Ds\Sequence Returns the sum of all values in the sequence 検索 Ds\Sequence::sum (PECL ds >= 1.0.0) Ds\Sequence::sum — Returns the sum of all values in the sequence 説明 abstract public ... function Ds\Sequence::sum (): int | float Returns the sum of all values in the sequence. 注意 : Arrays and objects are considered equal to zero ... when calculating the sum. パラメータ この関数にはパラメータはありません。 戻り値 The sum of all the values in the sequence as either a float or int depending on the values in the sequence. 例 例1 Ds\Sequence::sum() integer example <?php $sequenc ... e = new \Ds\Vector ([ 1 , 2 , 3 ]); var_dump ( $sequence -> sum ()); ?> 上の例の出力は、 たとえば以下のようになります。 int(6) 例2 Ds\Sequence::sum() float example <?php $sequence ...
https://man.mtool.work/php/8.3/ds-sequence.sum.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT