php8.5
Home/ Manual/ spl / outeriterator/ OuterIterator::getInnerIterator

OuterIterator::getInnerIterator

PHP function Edit on GitHub ✎

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Returns the inner iterator for the current entry

Description

OuterIterator::getInnerIterator(): Iterator|null

Returns the inner iterator for the current iterator entry.

Parameters Parameters

Return Values

Returns the inner iterator for the current entry if it exists, or null otherwise.

Source: reference/spl/outeriterator/getinneriterator.xml · from the official PHP manual (php/doc-en)