Read XML PHP DOM with XPATH?

You may want to switch to JSON that is much easier to parse.

You may want to switch to JSON that is much easier to parse: maps.googleapis.com/maps/api/geocode/jso... $json = file_get_contents('maps.googleapis.com/maps/api/geocode/jso...'); $geocodeResponse = json_decode($json, true); foreach($geocodeResponse'results' as $result){ echo $result'geometry''location''lat'. ', '. $result'geometry''location''lng' .''; }.

2 JSON is also lighter on bandwidth and server resources. – Levi Morrison Nov 3 at 20:32 hmm, I never worked with json, its way better then xml? – Row Minds Nov 3 at 20:35 1 It'll be better for you and Google ;) – ComFreek Nov 3 at 20:36 because I get Warning: Invalid argument supplied for foreach() in /home/content/49/7991949/html/apps/friendlocation/get-city-coordonates.

Php on line 11 – Row Minds Nov 3 at 20:36 @Row Minds $geocodeResponse'result**s**' should work! – ComFreek Nov 3 at 20:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions