Skip to content

Instantly share code, notes, and snippets.

@blackhalt
Created July 8, 2012 11:59
Show Gist options
  • Save blackhalt/3070654 to your computer and use it in GitHub Desktop.
Save blackhalt/3070654 to your computer and use it in GitHub Desktop.
Faktiskā temperatūra
<?php
$json = file_get_contents('http://www.meteo.lv/meteorologijas-operativie-dati/');
$obj = json_decode($json);
$graadi = $obj->stations[5]->parameters[0]->{'value'};
echo $graadi;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment