Results of 1 - 10 of about 104 for traversable (0.001 sec.)
- IteratorIterator::__construct — traversable な何かからイテレータを作成する | PH... 12647
- IteratorIterator::__construct (PHP 5 >= 5.1.0, PHP 7, PHP 8) IteratorIterator::__construct — traversable な何かからイテレータを作成する 説明 public function IteratorIterator::__construct ( Traversable $iterator , ? string $class = null ) traversable
... aversable な何かからイテレータを作成します。 パラメータ iterator traversable なイテレータ。 class 内側のイテレータのために使うクラス名。 これを使うと、与えられたイテレータをラップするために異なるイテ ... レータクラスを指定できます。 デフォルトでは、 IteratorIterator を使います。 参考 Traversable 他のマニュアルの関連ページ Python iter Python functional Python email.iterators Python iterator Python functions ...
-
https://man.mtool.work/php/8.3/iteratoriterator.construct.html
- IteratorAggregate::getIterator — 外部イテレータ または traversable を取得する |... 11642
- IteratorAggregate::getIterator (PHP 5, PHP 7, PHP 8) IteratorAggregate::getIterator — 外部イテレータ または traversable を取得する 説明 public function IteratorAggregate::getIterator (): Traversable 外部イテレータ または traversable を返しま
... す。 パラメータ この関数にはパラメータはありません。 戻り値 Iterator あるいは Traversable を実装したオブジェクトのインスタンスを返します。 エラー / 例外 失敗した場合は Exception をスローします。 他のマニュアルの関 ...
-
https://man.mtool.work/php/8.3/iteratoraggregate.getiterator.html
- IteratorAggregate インターフェイス | PHP 8.3 10406
- IteratorAggregate インターフェイス (PHP 5, PHP 7, PHP 8) はじめに 外部イテレータを作成するためのインターフェイスです。 インターフェイス概要 interface IteratorAggregate extends Traversable { /* メソッド */ public function getIterator (): Traversable
... versable } 例 例1 基本的な使用法 <?php class myData implements IteratorAggregate { public function getIterator (): Traversable { return new ArrayIterator ([ "key one" => "item one" , "key two" => "item two" , "key three" => "item three" ]); } } $obj ... ng(8) "item two" string(9) "key three" string(10) "item three" 目次 IteratorAggregate::getIterator — 外部イテレータ または traversable を取得する 他のマニュアルの関連ページ Python iter ...
-
https://man.mtool.work/php/8.3/class.iteratoraggregate.html
- The Collection interface | PHP 8.3 9182
- The Collection interface (PECL ds >= 1.0.0) はじめに Collection is the base interface which covers functionality common to all the data structures in this library. It guarantees that all structures are traversable, countable, and can be con
... : array /* 継承したメソッド */ public function Countable::count (): int public function IteratorAggregate::getIterator (): Traversable public function JsonSerializable::jsonSerialize (): mixed } 変更履歴 バージョン 説明 PECL ds 1.4.0 Collection implements I ... teratorAggregate now instead of just Traversable . (This change came to the polyfill in 1.4.1.) 目次 Ds\Collection::clear — Removes all values Ds\Collection::copy — Return ...
-
https://man.mtool.work/php/8.3/class.ds-collection.html
- Ds\Map::putAll — Associates all key-value pairs of a traversable object or arra... 8950
- Ds\Map::putAll (PECL ds >= 1.0.2) Ds\Map::putAll — Associates all key-value pairs of a traversable object or array 説明 public function Ds\Map::putAll ( mixed $pairs ): void Associates all key-value pairs of a traversable object or array .
... does not implement Ds\Hashable , objects must be references to the same instance to be considered equal. パラメータ pairs traversable object or array . 戻り値 値を返しません。 例 例1 Ds\Map::putAll() example <?php $map = new \Ds\Map (); $map -> putAll ([ " ...
-
https://man.mtool.work/php/8.3/ds-map.putall.html
- Ds\Map::merge — Returns the result of adding all given associations | PHP 8.3 8615
- Ds\Map::merge (PECL ds >= 1.0.0) Ds\Map::merge — Returns the result of adding all given associations 説明 public function Ds\Map::merge ( mixed $values ): Ds\Map Returns the result of associating all keys of a given traversable object or ar
... nce. 注意 : Values of the current instance will be overwritten by those provided where keys are equal. パラメータ values A traversable object or an array . 戻り値 The result of associating all keys of a given traversable object or array with their correspon ...
-
https://man.mtool.work/php/8.3/ds-map.merge.html
- IteratorIterator クラス | PHP 8.3 8396
- IteratorIterator クラス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに このイテレータラッパーを使うと、 Traversable なものなら何でもイテレータに変換することができます。 注意すべきなのは、Iterator を実装していない大半のクラスにはそれなりの理由 (Ite
... ーが起こり得ます。 クラス概要 class IteratorIterator implements OuterIterator { /* メソッド */ public function __construct ( Traversable $iterator , ? string $class = null ) public function current (): mixed public function getInnerIterator (): ? Iterator pub ... テレータのメソッドへのアクセスを許可するために、マジックメソッド __call を利用します。 目次 IteratorIterator::__construct — traversable な何かからイテレータを作成する IteratorIterator::current — 現在の値を取得する IteratorIterator::getInnerIterator — 内部イテ ...
-
https://man.mtool.work/php/8.3/class.iteratoriterator.html
- Traversable インターフェイス | PHP 8.3 8281
- Traversable インターフェイス (PHP 5, PHP 7, PHP 8) はじめに そのクラスの中身が foreach を使用してたどれるかどうかを検出するインターフェイスです。 これは抽象インターフェイスであり、単体で実装することはできません。 IteratorAggregate あるいは
... Iterator を実装しなければなりません。 インターフェイス概要 interface Traversable { } このインターフェイスにはメソッドがありません。 traverse 可能なすべてのクラス用の基底インターフェイスとしてのみ存在して ... います。 変更履歴 バージョン 説明 8.0.0 Traversable インターフェイスは、抽象クラスによって実装できるようになりました。 これを拡張するには、 Iterator あるいは IteratorAggregat ...
-
https://man.mtool.work/php/8.3/class.traversable.html
- iterator_count — イテレータにある要素をカウントする | PHP 8.3 8281
- 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( 're ...
-
https://man.mtool.work/php/8.3/function.iterator-count.html
- DOMNamedNodeMap::getIterator — 外部のイテレータを取得する | PHP 8.3 8062
- DOMNamedNodeMap::getIterator (PHP 8) DOMNamedNodeMap::getIterator — 外部のイテレータを取得する 説明 public function DOMNamedNodeMap::getIterator (): Iterator 名前付きノードのマップ向けに、外部のイテレータを返します。 パラメータ この関数には
... パラメータはありません。 戻り値 Iterator あるいは Traversable を実装したオブジェクトのインスタンスを返します。 エラー / 例外 失敗した場合は Exception をスローします。 参考 IteratorAggr ... egate::getIterator() - 外部イテレータ または traversable を取得する 他のマニュアルの関連ページ Python iter Python iterator ...
-
https://man.mtool.work/php/8.3/domnamednodemap.getiterator.html