I got problem getting value from xml data, here is my data
[a] => SimpleXMLElement Object
(
[b] => SimpleXMLElement Object
(
[id] => 123
[name] => Daughter
[a] => SimpleXMLElement Object
(
[b] => SimpleXMLElement Object
(
[id] => 234
[name] => Mom
[c] => 1
[a] => SimpleXMLElement Object
(
[b] => SimpleXMLElement Object
(
[id] => 345
[name] => Grandma
)
)
)
)
)
)
How I can get this data
123Daughter
234Mom
345Grandma
The sub child is lot not only 3 level, try to read this one XML File - Get specific child nodes in unlimited node depths but still can't understand, anyone can help me, thank you