【发布时间】:2015-08-04 15:30:27
【问题描述】:
我使用 PHP 脚本 执行了 SOAP/WSDL 请求。 我可以访问如下所示的答案:
stdClass Object
(
[inventory] =>
(
[0] => stdClass Object
(
[location_inventory] => stdClass Object
(
[location] => stdClass Object
(
[organization] => abcdef
[contact] => stdClass Object
(
[contact_details] => stdClass Object
(
[id] => Thomas
)
)
)
[product] => tomatoes
)
)
)
)
关键是我无法提取变量“organization”、“id”或“product”。
访问 stdClass Object 或 Array 的语法有何不同?
【问题讨论】:
-
$data->inventory[0]->location_inventory->location->organization等等
标签: php xml soap xml-parsing soap-client