ArrayIterator::key
ArrayIterator::rewind
ArrayIterator
PHP Manual

# ArrayIterator::next

(PHP 5 >= 5.1.0)

ArrayIterator::next — Move to next entry

### Descripción

void ArrayIterator::next ( void )

The iterator to the next entry.

### Lista de parámetros

This function has no parameters.

### Valores retornados

No value is returned.

### Ejemplos

Example #1 ArrayIterator::next() example

`<?php
$arrayobject = new ArrayObject();
$arrayobject[] = 'zero';
$arrayobject[] = 'one';
$iterator = $arrayobject->getIterator();
while($iterator->valid()) {
echo $iterator->key() . ' => ' . $iterator->current() . "\n";
$iterator->next();
}
?>`

El resultado del ejemplo seria:

    0 => zero
    1 => one

ArrayIterator::key
ArrayIterator::rewind
ArrayIterator
PHP Manual