Home > Backend Development > PHP Tutorial > Alibaba simplexmlelement object value PHP, simplexmlelement value_PHP tutorial

Alibaba simplexmlelement object value PHP, simplexmlelement value_PHP tutorial

WBOY
Release: 2016-07-12 08:57:24
Original
860 people have browsed it

Alibaba simplexmlelement object value PHP, simplexmlelement value

SimpleXMLElement Object
(
[code] => 15
[msg] = > Remote service error
[sub_code] => isv.MOBILE_NUMBER_ILLEGAL
[sub_msg] => Number format error
[request_id] => zqbnzcj7btxy
)

$result=$obj->sub_msg;

Result: Number format error


SimpleXMLElement Object
(
[result] => SimpleXMLElement Object
(
[err_code] => 0
[model] => 10086 3158072^1101308124312
                                                  success] => true
)

[request_id] => 101yy013xxd
)

$result=$obj->result->success;

Result: true

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1108861.htmlTechArticleAlibaba fish simplexmlelement object value PHP, simplexmlelement value SimpleXMLElement Object ( [code] = 15 [msg] = Remote service error [sub_code] = isv.MOBILE_NUMBER_ILLEGAL [su...
Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template