Convert distance between m, km, ft and sm
public static convertDistance ( double $distance, string $from, string $to ) : double | ||
$distance | double | The distance in $from units. |
$from | string | The units to convert from. |
$to | string | The units to convert to. |
Résultat | double |