RecursiveArrayIterator::getChildrenReturns an iterator for the current entry if it is an array or an object. Beschreibung
public RecursiveArrayIterator RecursiveArrayIterator::getChildren
( void
)
Returns an iterator for the current iterator entry. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteAn iterator for the current entry, if it is an array or object. Fehler/ExceptionsAn InvalidArgumentException will be thrown if the current entry does not contain an array or an object. Beispiele
Beispiel #1 RecursiveArrayIterator::getChildren example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: No children. No children. a : apple p : pear Siehe auch
|