SimpleXMLIterator::rewindRewind to the first element Description
public void SimpleXMLIterator::rewind
( void
)
This method rewinds the SimpleXMLIterator to the first element. ParametersThis function has no parameters. Return ValuesNo value is returned. Examples
Example #1 Rewind to the first element
<?phpThe above example will output:
object(SimpleXMLIterator)#2 (1) {
[0]=>
string(10) "PHP Basics"
}
|