Home > php教程 > php手册 > 阿里大鱼simplexmlelement object 取值PHP,simplexmlelement取值

阿里大鱼simplexmlelement object 取值PHP,simplexmlelement取值

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 08:44:37
Original
945 people have browsed it

阿里大鱼simplexmlelement object 取值PHP,simplexmlelement取值

SimpleXMLElement Object
(
    [code] => 15
    [msg] => Remote service error
    [sub_code] => isv.MOBILE_NUMBER_ILLEGAL
    [sub_msg] => 号码格式错误
    [request_id] => zqbnzcj7btxy
)

$result=$obj->sub_msg;

 

结果:号码格式错误


 

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

    [request_id] => 101yy013xxd
)

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

 

结果:true

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template