Reply to weather file - accessing xml data

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация