RecursiveIterator
interface RecursiveIterator implements Iterator (View source)
Classes implementing RecursiveIterator can be used to iterate over iterators recursively.
Methods
bool
hasChildren()
Returns if an iterator can be created for the current entry.
RecursiveIterator|null
getChildren()
Returns an iterator for the current entry.
Details
mixed
current()
Return the current element
void
next()
Move forward to next element
mixed
key()
Return the key of the current element
bool
valid()
Checks if current position is valid
void
rewind()
Rewind the Iterator to the first element
bool
hasChildren()
Returns if an iterator can be created for the current entry.
RecursiveIterator|null
getChildren()
Returns an iterator for the current entry.