SimpleXMLElement Object
(
[code] => 15
[msg] => Remote service error
[sub_code] => isv.MOBILE_NUMBER_ILLEGAL
[sub_msg] => Number format error
[request_id] =& gt; zqbnzcj7btxy
)
$result=$obj->sub_msg;
Result: The number format is wrong
SimpleXMLElement Object
(
[result] => SimpleXMLElement Object
(
[err_code] => 0
[model] => 100863158072^1101308124312
obj->result->success;
result: true