SimpleXML returns arrays of SimpleXMLElements, thus use $xml[0]
.
SimpleXMLElement cannot get the output
-
12-06-2023 - |
Question
Sorry for silly question, from below can anyone advise how can I get the output above? I tried echo $xml->0, but as usual, it is syntax error...
Output:
SimpleXMLElement Object
(
[0] => 03 04 32N 101 46 43E
)
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow