- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- json_decode: documentation ( source)
<?php $url = 'http://api.geonames.org/postalCodeLookupJSON?postalcode=6600&country=AT&username=demo';
$json = file_get_contents($url);
$obj = json_decode($json);
var_dump($obj)
?>