Hi peeps,
I have spent much time in finding the proper solution for my
problem.To be more specific i am parsing an xml document from an
external site(using httpSocket) which contains some data.I have
managed to parse it and when i do pr($parsed_xml) or debug
($parsed_xml) i get an array which contains the data i want to
print.The output is above:
Array
(
    [Geonames] => Array
        (
            [style] => MEDIUM
            [totalResultsCount] => 1648
            [Geoname] => Array
                (
                    [0] => Array
                        (
                            [name] => Barcelona
                            [lat] => 41.3887868890716
                            [lng] => 2.15898513793945
                            [geonameId] => 3128760
                            [countryCode] => ES
                            [countryName] => Spain
                            [fcl] => P
                            [fcode] => PPLA
                        )

                    [1] => Array
                        (
                            [name] => Barcelona
                            [lat] => 10.1333333
                            [lng] => -64.7
                            [geonameId] => 3648559
                            [countryCode] => VE
                            [countryName] => Venezuela
                            [fcl] => P
                            [fcode] => PPL
                        )
....and so on...

How i can take these data from the array[] and print them like this
for example?
name:Barcelona
lat:...
lng...
...
etc
I want to make them appear more friendly to user so later if user pick
this location it will be very easier to save them in database as
fields and not as xml document.
Any help would be soooo nice!
Ty in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to