array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'class.recursivearrayiterator.php', 1 => 'RecursiveArrayIterator', ), 'up' => array ( 0 => 'spl.iterators.php', 1 => 'Itérateurs', ), 'prev' => array ( 0 => 'parentiterator.rewind.php', 1 => 'ParentIterator::rewind', ), 'next' => array ( 0 => 'recursivearrayiterator.getchildren.php', 1 => 'RecursiveArrayIterator::getChildren', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/spl/recursivearrayiterator.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.recursivearrayiterator.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Cet itérateur permet de supprimer et de modifier des valeurs et clés durant l'itération sur des tableaux et des objets, de la même façon que ArrayIterator. De plus, il est possible d'itérer sur l'élément courant.
RecursiveArrayIterator::CHILD_ARRAYS_ONLY
Traitez uniquement les tableaux (et non les objets) comme ayant des enfants pour l'itération récursive.