Convert temperature between f and c
public static convertTemperature ( double $temperature, string $from, string $to ) : double | ||
$temperature | double | The temperature in $from units. |
$from | string | Units to convert from. |
$to | string | Units to convert to. |
리턴 | double |