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

数据输出 提取的有关问题

Jun 13, 2016 pm 01:30 PM
gt object

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

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

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

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What are the differences between Huawei GT3 Pro and GT4? What are the differences between Huawei GT3 Pro and GT4? Dec 29, 2023 pm 02:27 PM

What are the differences between Huawei GT3 Pro and GT4?

Fix: Snipping tool not working in Windows 11 Fix: Snipping tool not working in Windows 11 Aug 24, 2023 am 09:48 AM

Fix: Snipping tool not working in Windows 11

How to Fix Can't Connect to App Store Error on iPhone How to Fix Can't Connect to App Store Error on iPhone Jul 29, 2023 am 08:22 AM

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? What are the methods of converting java Object to byte and byte to Object? Apr 20, 2023 am 11:37 AM

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

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决

How to use methods in Java Object class How to use methods in Java Object class Apr 18, 2023 pm 06:13 PM

How to use methods in Java Object class

PHP Notice: Trying to get property of non-object solution PHP Notice: Trying to get property of non-object solution Jun 24, 2023 pm 09:34 PM

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

Is watch4pro better or gt? Is watch4pro better or gt? Sep 26, 2023 pm 02:45 PM

Is watch4pro better or gt?

See all articles