数据输出 提取的有关问题
Jun 13, 2016 pm 01:30 PM
数据输出 提取的问题 高手请进
我的淘宝登录到了最后一步,接下来该怎么提取呀,我的返回页面的代码。
$tao_userinfo = $c->execute($req, $sessionKey);
print_r($tao_userinfo);
然后输出了
SimpleXMLElement Object ( [user] => SimpleXMLElement Object ( [created] => 2009-11-09 10:48:39 [nick] => zhangboyatou [uid] => 0b4574bfa27c63cd378d97f47c5d9754 ) )
接下来我该怎么提取nick 的值呢!!!
------解决方案--------------------
SimpleXMLElement Object ( [user] => SimpleXMLElement Object ( [created] => 2009-11-09 10:48:39 [nick] => zhangboyatou [uid] => 0b4574bfa27c63cd378d97f47c5d9754 ) )
这里就有nick啊
------解决方案--------------------
$tao_userinfo->nick
------解决方案--------------------
$tao_userinfo->user->nick 应该是这个的。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What are the differences between Huawei GT3 Pro and GT4?

Fix: Snipping tool not working in Windows 11

How to Fix Can't Connect to App Store Error on iPhone

What are the methods of converting java Object to byte and byte to Object?

How to use methods in Java Object class

PHP Notice: Trying to get property of non-object solution
