ArrayIterator::rewind
Retrocede o array
&reftitle.description;
public voidArrayIterator::rewind
Esta função retrocede o iterador para o início do array.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
&return.void;
&reftitle.examples;
Exemplo de ArrayIterator::rewind
getIterator();
$iterator->next();
echo $iterator->key(); // 1
$iterator->rewind(); // retornando ao início
echo $iterator->key(); // 0
?>
]]>