note 121963 added to simplexmliterator.next
| From: | bmafzallmahmud at gmail dot com | Date: | Fri, 01 Dec 2017 21:34:07 +0000 |
| Subject: | note 121963 added to simplexmliterator.next | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209294@lists.php.net to get a copy of this message | ||
<?php
$note=<<<XML
<note>
<to>Afzall</to>
<from>Sumon</from>
<heading>Reminder</heading>
<body>Don't forget go to kishorgong</body>
</note>
XML;
$xmlIterator = new SimpleXMLIterator($note);
$xmlIterator->rewind();
var_dump($xmlIterator->current());
$xmlIterator->next();
var_dump($xmlIterator->current());
$xmlIterator->next();
var_dump($xmlIterator->current());
?>
out put :
object(SimpleXMLIterator)#2 (1) {
[0]=>
string(6) "Afzall"
}
object(SimpleXMLIterator)#2 (1) {
[0]=>
string(5) "Sumon"
}
object(SimpleXMLIterator)#2 (1) {
[0]=>
string(8) "Reminder"
}
----
Server IP: 208.43.231.9
Probable Submitter: 103.202.223.116
----
Manual Page -- http://php.net/manual/en/simplexmliterator.next.php
Edit -- https://master.php.net/note/edit/121963
Del: integrated -- https://master.php.net/note/delete/121963/integrated
Del: useless -- https://master.php.net/note/delete/121963/useless
Del: bad code -- https://master.php.net/note/delete/121963/bad+code
Del: spam -- https://master.php.net/note/delete/121963/spam
Del: non-english -- https://master.php.net/note/delete/121963/non-english
Del: in docs -- https://master.php.net/note/delete/121963/in+docs
Del: other reasons-- https://master.php.net/note/delete/121963
Reject -- https://master.php.net/note/reject/121963
Search -- https://master.php.net/manage/user-notes.php