Posted by z1 on 09/24/07 02:27
hi -
i downloaded some data from a weather service that is in an xml file.
["parameters"]=> object(SimpleXMLElement)#9 (4) { ["temperature"]=> array(2)
{ [0]=> object(SimpleXMLElement)#11 (2) { ["name"]=> string(25) "Daily
Maximum Temperature" ["value"]=> array(6) { [0]=>
object(SimpleXMLElement)#16 (0) { } [1]=> string(2) "84" [2]=> string(2)
"89" [3]=> string(2) "87" [4]=> string(2) "82" [5]=> string(2) "78" } }
[1]=> object(SimpleXMLElement)#12 (2) { ["name"]=> string(25) "Daily Minimum
Temperature" ["value"]=> array(5) { [0]=> string(2) "48" [1]=> string(2)
"54" [2]=> string(2) "61" [3]=> string(2) "60" [4]=> string(2) "61" } } }
i need to get the temperatures out of that with simplexml methods.
i just cant come up with the syntax to access the array indexes of each
element of a given object.
any help is very cool.
thank you,
jim
[Back to original message]
|