Is there any way to loop through an xml loaded in simpleXML in reverse? say if i have the following xml
$string ="<items>
<item>1</item>
<item>2</item>
<item>3</item>
</items>";
$xml = simplexml_load_string($string);
is there any way to reverse $xml so that i get item 3 when i do a foreach