Created
August 26, 2018 14:59
-
-
Save osbre/dec3120257517339a7d70111f8012d32 to your computer and use it in GitHub Desktop.
PHP - convert miles to meters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$meters = 5302; | |
$miles = round($meters, 1, PHP_ROUND_HALF_UP); | |
echo $miles; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment