I use PHP function simplexml_load_string and trying to get Data from XML Data But it look like i cannot get anything from this xml data
SimpleXMLElement Object ( [attribute] => Array ( [0] => SimpleXMLElement Object ( [name] => uname [value] => admin ) [1] => SimpleXMLElement Object ( [name] => playerlevel [value] => 1 ) [2] => SimpleXMLElement Object ( [name] => sessionid [value] => i9vfgvqo30c2kk2g57avmd0t ) ) )
This is my code
$xml = simplexml_load_string($request->body);
I have try with echo $xml[0], $xml[0]->value, $xml[1], It cannot get anything from this xml data.