function WeatherInfo($temp)
{
    $c = ConvertToCelsius($temp);
    if ($c < 0) {
        return $c . ' is freezing temperature';
    } else {
        return $c . ' is above freezing temperature';
    }
}
Beispiel #2
0
function WeatherInfo($temperature)
{
    $celsius = ConvertToCelsius($temperature);
    if ($celsius < 0) {
        return $celsius . " is freezing temperature";
    } else {
        return $celsius . " is above freezing temperature";
    }
}
Beispiel #3
0
function WeatherInfo($temp)
{
    $c = ConvertToCelsius($temp);
    if ($c > 0) {
        return "{$c} is above freezing temperature";
    } else {
        return "{$c} is freezing temperature";
    }
}