Im having some trouble looping through some xml data.
The xml file is structured like this:
<users type="array">
−<user>
<id>14527576</id>
</user>
−<user>
<id>14527576</id>
</user>
−<user>
<id>14527576</id>
</user>
My php to loop through it looks like this
$xml = simplexml_load_string($rawxml);
foreach($xml->users AS $key){
$id = $key->user->{"id"};
But its not throwing errors, or returning anything