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