RecursiveArrayIterator::getChildrenReturns an iterator for the current entry if it is an array or an object. Description
public RecursiveArrayIterator RecursiveArrayIterator::getChildren
( void
)
Returns an iterator for the current iterator entry. ParametersThis function has no parameters. Return ValuesAn iterator for the current entry, if it is an array or object. Errors/ExceptionsAn InvalidArgumentException will be thrown if the current entry does not contain an array or an object. Examples
Example #1 RecursiveArrayIterator::getChildren example
<?php The above example will output: No children. No children. a : apple p : pear See Also
|