note 123445 added to class.simplexmliterator
| From: | rukkykf at gmail dot com | Date: | Sun, 16 Dec 2018 18:54:00 +0000 |
| Subject: | note 123445 added to class.simplexmliterator | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209914@lists.php.net to get a copy of this message | ||
I think it's worth mentioning that you need to call the rewind() method on the
SimpleXMLIterator object immediately after initialization before you can start doing any other
operations on the object. An example:
<?php
$xml = new SimpleXMLIterator('file.xml', null, true);
// $x here will be set to null because the rewind() method has not been called
$x = $xml->current();
$xml->rewind();
// $x here will be set to the first element
$x = $xml->current();
?>
----
Server IP: 208.43.231.9
Probable Submitter: 197.210.53.136
----
Manual Page -- http://php.net/manual/en/class.simplexmliterator.php
Edit -- https://master.php.net/note/edit/123445
Del: integrated -- https://master.php.net/note/delete/123445/integrated
Del: useless -- https://master.php.net/note/delete/123445/useless
Del: bad code -- https://master.php.net/note/delete/123445/bad+code
Del: spam -- https://master.php.net/note/delete/123445/spam
Del: non-english -- https://master.php.net/note/delete/123445/non-english
Del: in docs -- https://master.php.net/note/delete/123445/in+docs
Del: other reasons-- https://master.php.net/note/delete/123445
Reject -- https://master.php.net/note/reject/123445
Search -- https://master.php.net/manage/user-notes.php