Search Results
This iterator has a misleading name and description - it actually acts as a parallel iterator: You attach one or more iterators with a key, integer or NULL, and when you iterate over the MultipleIterator, as the result for current() you get ALL results from all attached iterators as an array (under the key or integer you attached it with), and ...
Mar 23, 2026 · Table of Contents MultipleIterator::attachIterator — Attaches iterator information MultipleIterator::__construct — Constructs a new MultipleIterator MultipleIterator::containsIterator — Checks if an iterator is attached MultipleIterator::countIterators — Gets the number of attached iterator instances MultipleIterator::current — Gets the registered iterator instances MultipleIterator ...
MultipleIterator::current (PHP 5 >= 5.3.0, PHP 7) MultipleIterator::current — Gets the registered iterator instances Description public MultipleIterator::current ( ) : array Get the registered iterator instances current() result. WarningThis function is currently not documented; only its argument list is available. Parameters This function has no parameters. Return Values An array containing ...
The PHP function " [MultipleIterator::current] (https://www.php.net/manual/en/multipleiterator.current.php)" is used to retrieve the current value from registered iterator instances in a MultipleIterator object.
Return Values An array containing the current values of each attached iterator, or FALSE if no iterators are attached.
PHP 8.2.10 is one of the latest versions of PHP, which brings a number of improvements and new features. In this article we will discuss some of the outstanding new features and improvements in this version. ...
Predefined Constants MultipleIterator::MIT_NEED_ANY Do not require all sub iterators to be valid in iteration. MultipleIterator::MIT_NEED_ALL Require all sub iterators to be valid in iteration. MultipleIterator::MIT_KEYS_NUMERIC Keys are created from the sub iterators position. MultipleIterator::MIT_KEYS_ASSOC Keys are created from sub iterators associated information.
