Home  >  Article  >  Backend Development  >  Ali big fish simplexmlelement object value PHP

Ali big fish simplexmlelement object value PHP

WBOY
WBOYOriginal
2016-07-29 08:59:07959browse

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

The above introduces Alibaba's simplexmlelement object value PHP, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn