ArrayIterator::next

Move to next entry

&reftitle.description; public `void` `ArrayIterator::next`

The iterator to the next entry.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

&return.void;

&reftitle.examples;

### `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();
    }
    ?>

&example.outputs;

    0 => zero
    1 => one