PHP रिवाइंड () फ़ंक्शन
उदाहरण
पहले तत्व पर रिवाइंड करें और फिर इसे वापस करें (वर्तमान () के साथ):
<?php
$note=<<<XML
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Do not forget me this weekend!</body>
</note>
XML;
$xml = new SimpleXMLIterator($note);
// rewind to the first element
$xml->rewind();
// return current element
var_dump($xml->current());
?>
परिभाषा और उपयोग
रिवाइंड () फ़ंक्शन पहले तत्व को रिवाइंड करता है।
वाक्य - विन्यास
SimpleXMLIterator::rewind()
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | कुछ भी तो नहीं |
---|---|
पीएचपी संस्करण: | 5.0+ |
❮ PHP SimpleXML संदर्भ