SimpleXMLElement 问题
object(SimpleXMLElement)[7]
public 'trades' =>
object(SimpleXMLElement)[8]
public '@attributes' =>
array (size=1)
'list' => string 'true' (length=4)
public 'trade' =>
array (size=3)
0 =>
object(SimpleXMLElement)[9]
...
1 =>
object(SimpleXMLElement)[10]
将 $xml 打印出来是这样,如何获取 数组形式的trade
$xml->trades->trade 获取的总是数组第一个对象
和$xml->trades->trade[0] 结果一样
求高手,如果最简单一次获取到 trade 数组中内容