Home > Backend Development > PHP Tutorial > 数据输出 提取的有关问题

数据输出 提取的有关问题

WBOY
Release: 2016-06-13 13:30:59
Original
813 people have browsed it

数据输出 提取的问题 高手请进
我的淘宝登录到了最后一步,接下来该怎么提取呀,我的返回页面的代码。

$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 应该是这个的。

Related labels:
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