Answers for "convert url string to json php"

PHP
1

json url decode php

$json = file_get_contents('http://api.geonames.org/findNearbyPlaceNameJSON?lat=51.9877644&lng=-1.47866&username=demo');

$data = json_decode($json,true);

$Geonames = $data['geonames'][0];

echo "<pre>";

print_r($Geonames);

exit;
Posted by: Guest on November-24-2021

Code answers related to "convert url string to json php"

Browse Popular Code Answers by Language