SimpleXMLIterator::rewind
(PHP 5 >= 5.1.0)
SimpleXMLIterator::rewind — Rewind to the first element
Descrizione
void SimpleXMLIterator::rewind
( void
)
This method rewinds the SimpleXMLIterator to the first element.
Elenco dei parametri
Questa funzione non contiene parametri.
Valori restituiti
Nessun valore viene restituito.
Esempi
Example #1 Rewind to the first element
<?php
$xmlIterator = new SimpleXMLIterator('<books><book>PHP Basics</book><book>XML Basics</book></books>');
$xmlIterator->rewind();
var_dump($xmlIterator->current());
?>
Il precedente esempio visualizzerĂ :
object(SimpleXMLIterator)#2 (1) {
[0]=>
string(10) "PHP Basics"
}
There are no user contributed notes for this page.
