Home > Backend Development > PHP Tutorial > PHP调用C#Webservice如若判断是否有数据呢

PHP调用C#Webservice如若判断是否有数据呢

WBOY
Release: 2016-06-13 12:03:38
Original
845 people have browsed it

PHP调用C#Webservice如果判断是否有数据呢?
PHP调用C#Webservice如果判断是否有数据呢?

------解决方案--------------------
嗯,那是对象,不是数组
echo gettype($obj_xml->NewDataSet->Table1); // object
但 count 可以正确的返回成员个数
echo count($obj_xml->NewDataSet->Table1); //87

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