Search Results
MultipleIterator::key (PHP 5 >= 5.3.0, PHP 7, PHP 8) MultipleIterator::key — Gets the registered iterator instances
MultipleIterator::key (PHP 5 >= 5.3.0, PHP 7) MultipleIterator::key — Gets the registered iterator instances Description public MultipleIterator::key ( ) : array Get the registered iterator instances key() result. WarningThis function is currently not documented; only its argument list is available. Parameters This function has no parameters. Return Values An array of all registered iterator ...
Errors/Exceptions A RuntimeException if the iterator is invalid (as of PHP 8.1.0), or mode MIT_NEED_ALL is set, and at least one attached iterator is not valid. Calling this method from foreach triggers warning "Illegal type returned".
Simple usage example of `MultipleIterator::key ()`. The MultipleIterator::key function is used to retrieve the current key from each of the registered iterator instances within a MultipleIterator object. This function can be used when iterating over multiple iterators simultaneously and you need to access the keys of each iterator.
Errors/Exceptions A RuntimeException if the iterator is invalid (as of PHP 8.1.0), or mode MIT_NEED_ALL is set, and at least one attached iterator is not valid. Calling this method from foreach triggers warning "Illegal type returned".
Errors/Exceptions A LogicException if mode MIT_NEED_ALL is set, and at least one attached iterator is not valid. Calling this method from foreach triggers warning "Illegal type returned".
key メソッドは、複数のイテレータをまとめて処理する MultipleIterator オブジェクトが、現在指し示している要素群の「キー」を取得するメソッドです。 MultipleIterator は、複数の配列やオブジェクトなどの異なるデータ構造を同時に反復処理する際に利用され、それぞれのイテレータの要素を同期 ...
