Results of 1 - 10 of about 286 for Iterator (0.003 sec.)
- iterator_count — イテレータにある要素をカウントする | PHP 8.3 9304
- iterator_count (PHP 5 >= 5.1.0, PHP 7, PHP 8) iterator_count — イテレータにある要素をカウントする 説明 function iterator_count ( Traversable | array $iterator ): int イテレータにある要素をカウントします。 iterator_count() は、 iterator の現
... 在位置がそのまま保たれることを保障しません。 パラメータ iterator カウントしたいイテレータ。 戻り値 iterator の要素数を返します。 変更履歴 バージョン 説明 8.2.0 iterator の型が Traversable ... から、 Traversable | array に拡大されました。 例 例1 iterator_count() の例 <?php $iterator = new ArrayIterator (array( 'recipe' => 'pancakes' , 'egg' , 'milk' , 'flour' )); var_dump ( ... iterator_count ( $iterator )); ?> 上の例の出力は以下となります。 int(4) 例2 iterator_count() で位置を変更する例 <?php $iterator = new ArrayIterator ( ...
-
https://man.mtool.work/php/8.3/function.iterator-count.html
- The MongoDB\BSON\Iterator class | PHP 8.3 8709
- The MongoDB\BSON\Iterator class (mongodb >=1.16.0) はじめに Iterator used to iterate a BSON document or array. クラス概要 final class MongoDB\BSON\Iterator implements Iterator { /* メソッド */ final private function __construct () public fu
... ing | int public function next (): void public function rewind (): void public function valid (): bool } 目次 MongoDB\BSON\Iterator::__construct — Construct a new BSON iterator (unused) MongoDB\BSON\Iterator::current — Returns the current element MongoDB ... \BSON\Iterator::key — Returns the key of the current element MongoDB\BSON\Iterator::next — Advances the iterator to next element MongoDB\ ... BSON\Iterator::rewind — Rewinds the Iterator to the first element MongoDB\BSON\Iterator::valid — Checks if current position is valid 他の ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-iterator.html
- The Swoole\Connection\Iterator class | PHP 8.3 8642
- The Swoole\Connection\Iterator class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Connection\Iterator implements Iterator , Countable , ArrayAccess { /* メソッド */ public function count (): int public function current (): Connec
... offsetUnset ( int $offset ): void public function rewind (): void public function valid (): bool } 目次 Swoole\Connection\Iterator::count — Count connections. Swoole\Connection\Iterator::current — Return current connection entry. Swoole\Connection\Itera ... tor::key — Return key of the current connection. Swoole\Connection\Iterator::next — Move to the next connection. Swoole\Connection\Iterator::offsetExists — Check if offset exists. Swoole\Connection\ ... Iterator::offsetGet — Offset to retrieve. Swoole\Connection\Iterator::offsetSet — Assign a Connection to the specified offset. Swoole\Connection\Iterator::offsetUnset — Unset an offset. Swool ...
-
https://man.mtool.work/php/8.3/class.swoole-connection-iterator.html
- iterator_apply — ユーザー関数をイテレータのすべての要素でコールする | PHP 8.3 8113
- iterator_apply (PHP 5 >= 5.1.0, PHP 7, PHP 8) iterator_apply — ユーザー関数をイテレータのすべての要素でコールする 説明 function iterator_apply ( Traversable $iterator , callable $callback , ? array $args = null ): int イテレータ内のすべての
... 要素に対して関数をコールします。 パラメータ iterator 順次処理したいイテレータオブジェクト callback すべての要素に対してコールしたいコールバック関数。 この関数は args のみを受け ... 取ります。 デフォルトでは引数を渡されません。 たとえば count($args) === 3 の場合、 コールバック関数は3変数関数です。 注意 : iterator での処理を続けるために、 この関数は true を返さなければなりません。 args コールバック関数に渡す引数。 引数の array 。 args ... の個々の要素が コールバック callback に別々の引数として渡されます。 戻り値 イテレータの要素数を返します。 例 例1 iterator_apply() の例 <?php function print_caps ( Iterator $iterator ) { echo strtoupper ( $iterator -> current ()) . "\n" ; return ...
-
https://man.mtool.work/php/8.3/function.iterator-apply.html
- iterator_to_array — イテレータを配列にコピーする | PHP 8.3 8008
- iterator_to_array (PHP 5 >= 5.1.0, PHP 7, PHP 8) iterator_to_array — イテレータを配列にコピーする 説明 function iterator_to_array ( Traversable | array $iterator , bool $preserve_keys = true ): array イテレータの要素を配列にコピーします。 パ
... ラメータ iterator コピーしたいイテレータ。 preserve_keys イテレータの要素のキーをインデックスとして使用するかどうか。 キーが array あるいは ... あらわれた値が array で返されることになります。 このパラメータを false にすると、重複があってもすべての値を返します。 戻り値 iterator の要素を含む配列を返します。 変更履歴 バージョン 説明 8.2.0 iterator の型が Traversable から、 Traversable | array に拡大さ ... れました。 例 例1 iterator_to_array() の例 <?php $iterator = new ArrayIterator (array( 'recipe' => 'pancakes' , 'egg' , 'milk' , 'flour' )); var_dump ...
-
https://man.mtool.work/php/8.3/function.iterator-to-array.html
- MongoDB\BSON\Iterator::__construct — Construct a new BSON iterator (unused) | P... 7547
- MongoDB\BSON\Iterator::__construct (mongodb >=1.16.0) MongoDB\BSON\Iterator::__construct — Construct a new BSON iterator (unused) 説明 final private function MongoDB\BSON\Iterator::__construct () MongoDB\BSON\Iterator objects are created by
... calling MongoDB\BSON\Document::getIterator() or MongoDB\BSON\PackedArray::getIterator() and cannot be instantiated directly. パラメータ この関数にはパラメータはありま ... せん。 参考 MongoDB\BSON\Document::getIterator() - Returns an iterator for the BSON document MongoDB\BSON\PackedArray::getIterator() - Returns an iterator for the BSON a ...
-
https://man.mtool.work/php/8.3/mongodb-bson-iterator.construct.html
- AppendIterator::append — イテレータを追加する | PHP 8.3 7480
- AppendIterator::append (PHP 5 >= 5.1.0, PHP 7, PHP 8) AppendIterator::append — イテレータを追加する 説明 public function AppendIterator::append ( Iterator $iterator ): void イテレータを追加します。 パラメータ iterator 追加するイテレータ。 戻
... り値 値を返しません。 例 例1 AppendIterator::append() の例 <?php $array_a = new ArrayIterator (array( 'a' , 'b' , 'c' )); $array_b = new ArrayIterator (array( 'd' , ' ... e' , 'f' )); $iterator = new AppendIterator ; $iterator -> append ( $array_a ); $iterator -> append ( $array_b ); foreach ( $iterator as $current ... ) { echo $current ; } ?> 上の例の出力は以下となります。 abcdef 参考 AppendIterator::__construct() - AppendIterator を作成する 他のマニュアルの関連ページ Python iter Python functional Python email.iterators ...
-
https://man.mtool.work/php/8.3/appenditerator.append.html
- AppendIterator::key — 現在のキーを取得する | PHP 8.3 7441
- AppendIterator::key (PHP 5 >= 5.1.0, PHP 7, PHP 8) AppendIterator::key — 現在のキーを取得する 説明 public function AppendIterator::key (): scalar 現在のキーを取得します。 パラメータ この関数にはパラメータはありません。 戻り値 有効な状態の場
... 合は現在のキー、それ以外の場合は null を返します。 例 例1 AppendIterator::key() の基本的な例 <?php $array_a = new ArrayIterator (array( 'a' => 'aardwolf' , 'b' => 'bear' , 'c' => 'capybara' )); $ ... array_b = new ArrayIterator (array( 'apple' , 'orange' , 'lemon' )); $iterator = new AppendIterator ; $iterator -> append ( $array_a ); $iterator -> a ... ppend ( $array_b ); // Manual iteration $iterator -> rewind (); while ( $iterator -> valid ()) { echo $iterator -> key () . ' ' . $iterator -> current () . PHP_EOL ; $itera ...
-
https://man.mtool.work/php/8.3/appenditerator.key.html
- ImagickPixelIterator クラス | PHP 8.3 7441
- ImagickPixelIterator クラス (PECL imagick 2, PECL imagick 3) クラス概要 class ImagickPixelIterator { public function clear (): bool public function __construct ( Imagick $wand ) public function destroy (): bool public function getCurrentIterator
... ratorRow (): array public function getIteratorRow (): int public function getNextIteratorRow (): array public function getPreviousIteratorRow (): array public function n ... ewPixelIterator ( Imagick $wand ): bool public function newPixelRegionIterator ( Imagick $wand , int $x , int $y , int $columns , int $row ... s ): bool public function resetIterator (): bool public function setIteratorFirstRow (): bool public function setIteratorLastRow (): bool public function setItera ...
-
https://man.mtool.work/php/8.3/class.imagickpixeliterator.html
- OuterIterator インターフェイス | PHP 8.3 7412
- OuterIterator インターフェイス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに OuterIterator を実装したクラスは、 イテレータ群の反復処理に使うことができます。 インターフェイス概要 interface OuterIterator extends Iterator { /* メソッド */ public fun
... ction getInnerIterator (): ? Iterator /* 継承したメソッド */ public function Iterator::current (): mixed public function Iterator::key (): mixed ... public function Iterator::next (): void public function Iterator::rewind (): void public function Iterator::valid (): bool } 目次 OuterIterator::ge ... tInnerIterator — 現在のエントリの内部イテレータを返す ...
-
https://man.mtool.work/php/8.3/class.outeriterator.html