rewind()

PHP rewind() funksiyasi

❮ PHP SimpleXML ma’lumotnomasi

Misol

Birinchi elementga qayting va uni (current() yordamida) qaytaring:

<?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()); ?>
Misolni ishga tushirish »

ULASHISH

Ta’rif va qo‘llanilishi

rewind() funksiyasi birinchi elementga qaytadi.


Sintaksis

SimpleXMLIterator::rewind()

Texnik tafsilotlar

Qaytariladigan qiymat: Hech narsa
PHP versiyasi: 5.0+

❮ PHP SimpleXML ma’lumotnomasi

W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!