simpleXml 객체가 있고 객체에서 데이터를 읽으려는 경우 PHP를 처음 사용하기 때문에이를 수행하는 방법을 잘 모른다. 객체 세부 정보는 다음과 같습니다.PHP에서 SimpleXML 객체를 반복하는 방법
[설명] 및 [시간]을 읽어야합니다. 고맙습니다.
SimpleXMLElement Object (
[@attributes] => Array (
[type] => array
)
[time-entry] => Array (
[0] => SimpleXMLElement Object (
[date] => 2010-01-26
[description] => TCDM1 data management: sort & upload
[hours] => 1.0
[id] => 21753865
[person-id] => 350501
[project-id] => 4287373
[todo-item-id] => SimpleXMLElement Object (
[@attributes] => Array (
[type] => integer
[nil] => true
)
)
)
[1] => SimpleXMLElement Object (
[date] => 2010-01-27
[description] => PDCH1: HTML
[hours] => 0.25
[id] => 21782012
[person-id] => 1828493
[project-id] => 4249185
[todo-item-id] => SimpleXMLElement Object (
[@attributes] => Array (
[type] => integer
[nil] => true
)
)
) ) )
도와주세요. 나는 많은 것을 시도하지만 구문을 올바르게 이해하지 못합니다.
많은 분들께 감사드립니다. 너희들은 바위, 다시 한번 감사드립니다 ... – Aditya