0
我已經用print_r打印出了一個數組/對象(名爲'document')的內容。它看起來像這樣:幫助訪問數組/對象
Array ([0] => SimpleXMLElement Object ([@attributes] => Array ([id] => 7006276) [name] => Arnessysla [type] => region [latitude] => 64.5833 [longitude] => -21.8833 [entities] => SimpleXMLElement Object ()))
如何獲取'實體'內容?
我已經試過這樣:$文件[0] - >屬性[ '實體']
但它沒有工作!