$dataStr = file_get_contents('https://corona-virus-stats.herokuapp.com/api/v1/cases/general-stats');
$dataObj = json_decode($dataStr);
$props = [ 'total_cases', 'recovery_cases', 'death_cases' ];
echo implode('<br>', array_map(function($n) use($dataObj) {
return $n.': '.$dataObj->data->$n;
}, $props));