$response = file_get_contents( ‘http://greenmetric.ui.ac.id/backend/services/newYear2016/2016/4’ );
try {
$json = json_decode( $response );

} catch ( Exception $ex ) {
$json = null;
}
$x=1;
echo ”

“; echo “”;
foreach($json as $value){
if($value->identitas != “ucd.ie”)
{
echo “”;
}else{
$x++;
}
}
echo ”

Ranking University Country Water
“.$x++.” “.$value->univ.” bendera.”‘/> “.$value->rankWater.”

“;
?>