xml来源:
<nodes>
<TUR>
<node>
<kaynakad>Veri</kaynakad>
<rast>xxx1</rast>
<saat>18:50</saat>
</node>
<node>
<kaynakad>Veri</kaynakad>
<rast>xxx5</rast>
<saat>18:50</saat>
</node>
</TUR>
</nodes>
在循环中使用:
<?php foreach ($ev->TUR->children() as $node) { ?>
节目:
<?php echo $kaynakad=$node->kaynakad. '</br>'; ?>
<?php echo $rast=$node->rast. '</br>'; ?>
<?php echo $saat=$node->saat. '</br>'; ?>
kaynakad和saat没问题。但是,急问题。
我该如何解决?