note 121962 added to simplexmliterator.key
| From: | bmafzallmahmud at gmail dot com | Date: | Fri, 01 Dec 2017 21:04:27 +0000 |
| Subject: | note 121962 added to simplexmliterator.key | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209293@lists.php.net to get a copy of this message | ||
<?php
$note=<<<XML
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
XML;
$xmlIterator = new SimpleXMLIterator($note);
for( $xmlIterator->rewind(); $xmlIterator->valid(); $xmlIterator->next() ) {
echo "<pre>";
echo var_dump($xmlIterator->key());
}
?>
out put :
string(2) "to"
string(4) "from"
string(7) "heading"
string(4) "body"
----
Server IP: 208.43.231.9
Probable Submitter: 103.202.223.116
----
Manual Page -- http://php.net/manual/en/simplexmliterator.key.php
Edit -- https://master.php.net/note/edit/121962
Del: integrated -- https://master.php.net/note/delete/121962/integrated
Del: useless -- https://master.php.net/note/delete/121962/useless
Del: bad code -- https://master.php.net/note/delete/121962/bad+code
Del: spam -- https://master.php.net/note/delete/121962/spam
Del: non-english -- https://master.php.net/note/delete/121962/non-english
Del: in docs -- https://master.php.net/note/delete/121962/in+docs
Del: other reasons-- https://master.php.net/note/delete/121962
Reject -- https://master.php.net/note/reject/121962
Search -- https://master.php.net/manage/user-notes.php