Move to next entry

ArrayIterator::next

(PHP 5)

ArrayIterator::nextMove to next entry

Opis

void ArrayIterator::next ( void )

The iterator to the next entry.

Parametry

Ta funkcja nie posiada parametrĂłw.

Zwracane wartości

żadna wartość nie jest zwracana.

Przykłady

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

Powyższy przykład wyświetli:

0 => zero
1 => one


Zippo | Zippo | pierścionki | obrączki | opisy do gg | instytut zdrowia | Szklarska Poręba mapa | peruki
Design by flankerds.com