$xml = new SimpleXMLElement($xmlFileData);
//print_r($xml);
for($i=0$i<100;$i++){
$image=$xml->header1;
$link=$xml->link1;
doSomething($image,$link);
}
Here i need to fetch header2, hearder3 and so on.
How can i do that?
I tried $image=$xml->header[$i] and severa other things, none of them
works!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---