(PHP 5 >= 5.3.0, PHP 7, PHP 8)
MultipleIterator::containsIterator — Checks if an iterator is attached
$iterator
Checks if an iterator is attached or not.
iterator
The iterator to check.
Returns true if iterator is attached, false otherwise.
true
false