La clase RecursiveArrayIterator

(PHP 5 >= 5.1.0, PHP 7)

Introducción

Este iterador permite destruir y modificar valores y claves mientras se iteran arrays y objetos de la misma manera que con ArrayIterator. Adicionalmente es posible iterar la entrada del iterador actual.

Sinopsis de la Clase

RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator {
/* Métodos */
public hasChildren ( void ) : bool
/* Métodos heredados */
public ArrayIterator::append ( mixed $value ) : void
public ArrayIterator::asort ( void ) : void
public ArrayIterator::__construct ([ mixed $array = array() [, int $flags = 0 ]] )
public ArrayIterator::count ( void ) : int
public ArrayIterator::current ( void ) : mixed
public ArrayIterator::getArrayCopy ( void ) : array
public ArrayIterator::getFlags ( void ) : void
public ArrayIterator::key ( void ) : mixed
public ArrayIterator::ksort ( void ) : void
public ArrayIterator::natcasesort ( void ) : void
public ArrayIterator::natsort ( void ) : void
public ArrayIterator::next ( void ) : void
public ArrayIterator::offsetExists ( mixed $index ) : bool
public ArrayIterator::offsetGet ( mixed $index ) : mixed
public ArrayIterator::offsetSet ( mixed $index , mixed $newval ) : void
public ArrayIterator::offsetUnset ( mixed $index ) : void
public ArrayIterator::rewind ( void ) : void
public ArrayIterator::seek ( int $position ) : void
public ArrayIterator::serialize ( void ) : string
public ArrayIterator::setFlags ( string $flags ) : void
public ArrayIterator::uasort ( string $cmp_function ) : void
public ArrayIterator::uksort ( string $cmp_function ) : void
public ArrayIterator::unserialize ( string $serialized ) : string
public ArrayIterator::valid ( void ) : bool
}

Tabla de contenidos