ArrayIterator::next
(PHP 5)
ArrayIterator::next — Move to next entry
Descrizione
void ArrayIterator::next
( void
)
The iterator to the next entry.
Elenco dei parametri
Questa funzione non contiene parametri.
Valori restituiti
Nessun valore viene restituito.
Esempi
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();
}
?>
Il precedente esempio visualizzerĂ :
0 => zero 1 => one
ArrayIterator::next
There are no user contributed notes for this page.
