Home >Backend Development >PHP Tutorial >关于PHP SOAP获得数据为object(stdClass)[79]

关于PHP SOAP获得数据为object(stdClass)[79]

WBOY
WBOYOriginal
2016-06-06 20:19:491374browse

头一次开发PHP SOAP客户端,服务器端的内容别人都已经做好的,我只负责读取就可以了。
可最后获得的结果是 object(stdClass)[79],
请问怎么取得里面的内容?

回复内容:

头一次开发PHP SOAP客户端,服务器端的内容别人都已经做好的,我只负责读取就可以了。
可最后获得的结果是 object(stdClass)[79],
请问怎么取得里面的内容?

$var->attr;

或 先转换成数组再使用

Statement:
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