获取api的时候,获取回来的特殊对象
$eBayTime = $responseDoc->getElementsByTagName(‘Timestamp‘);
object(DOMNodeList) $eBayTime
这种对象,取长度 $eBayTime->length
取值 $eBayTime->item(0)
取值的对象是 object(DOMElement) $eBayTime->item(0)
取值 $eBayTime->item(0)->nodeValue
object(DOMNodeList) object(DOMElement),布布扣,bubuko.com
object(DOMNodeList) object(DOMElement)
原文地址:http://blog.csdn.net/q279838089/article/details/25394251