我$xml看起来像这样
SimpleXMLElement Object
(
[@attributes] => Array
(
[Total] => 450
[Count] => 4
[Start] => 0
)
[Code] => 0
[Item] => Array
(
[0] => SimpleXMLElement Object
(
[Person.P_Id] => 14845
)
[1] => SimpleXMLElement Object
(
[Person.P_Id] => 14844
)
[2] => SimpleXMLElement Object
(
[Person.P_Id] => 14837
)
[3] => SimpleXMLElement Object
(
[Person.P_Id] => 14836
)
)
)
现在我想让数组Item与另一个数组合并,但是当我尝试时$xml->Item,我只得到这个数组的第一个元素(即14845)。当我使用count($xml->Item)时,它返回真值(即 4)。我做错了什么来获取整个数组Item吗?
慕尼黑8549860