$obj = simplexml_load_string($xml);
SimpleXMLElement Object
(
[@attributes] => Array
(
[status] => success
)
[auth] => SimpleXMLElement Object
(
[token] => dxoYGmwncmntH07jJGro5h0rxNfE2Ni6
[seq] => 33
)
)
you can access status by
$obj->attributes()->status
5 comments:
Like this
Like this
Thanks, you just made my day after spending a few hours on approaches that went nowhere.
thanks, you saved my time!
Thanks! You saved my time searching solutions for this.
Post a Comment