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