首页 >后端开发 >php教程 >阿里大鱼simplexmlelement object 取值PHP,simplexmlelement取值_PHP教程

阿里大鱼simplexmlelement object 取值PHP,simplexmlelement取值_PHP教程

WBOY
WBOY原创
2016-07-12 08:57:24839浏览

阿里大鱼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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1108861.htmlTechArticle阿里大鱼simplexmlelement object 取值PHP,simplexmlelement取值 SimpleXMLElement Object ( [code] = 15 [msg] = Remote service error [sub_code] = isv.MOBILE_NUMBER_ILLEGAL [su...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn