Hello !
I write this code for read the xml
<?
for ($i=0;$xml->no[$i]->marca !="";$i++) {
?>
<td height="30" bgcolor="#97A7AE" class="textovisualizar"><strong><?php echo $xml->no [$i]->titulo;?></strong></td>
and work's....
But i need to reverse the reading of xml, i know from array_reverse it works.......But i wanted from my example....
Someone helps me?
Thank's
Reverse the reading of xml
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Reverse the reading of xml
Code: Select all
for ($i = count($xml->no) - 1; ($i > 0 && $xml->no[$i]->marca !=""); $i--) {Re: Reverse the reading of xml
1. for ($i = count($xml->no) - 1; ($i > 0 && $xml->no[$i]->marca !=""); $i--) {
Work's thank's for help
Work's thank's for help