next()

PHP next() funksiyasi

❮ PHP SimpleXML ma’lumotnomasi

Misol

Birinchi elementga qayting, keyingi elementga o‘ting va uni current() funksiyasi 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(); // move to the next element $xml->next(); // return current element var_dump($xml->current()); ?>
Misolni ishga tushirish »

ULASHISH

Ta’rif va qo‘llanilishi

next() funksiyasi keyingi elementga o‘tadi.


Sintaksis

SimpleXMLIterator::next()

Texnik tafsilotlar

Qaytariladigan qiymat: Hech narsa
PHP versiyasi: 5.0+

❮ PHP SimpleXML ma’lumotnomasi

W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!