Php – How do I get the value of an array item after using json_decode on url?
this is my code... $resp = json_decode($resp_json, true); return array($resp[0]['lat'], $resp[0]['lon']); this is my var_dump(json_decode($resp_json, true)); // vardump is below /// array(1) { [0]=> array(15) { ["place_id"]=> int(308959017) ["licence"]=> string(70) "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright" ["osm_type"]=> string(3) "way"…