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

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

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

Ranking University Country Transportation
“.$x++.” “.$value->univ.” “.round($value->rankTransportation).”

“;
?>