Created
December 1, 2016 23:14
-
-
Save emir/d31bd88e3b4666b2e71151b8dd3a72ae to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
declare(strict_types=1); | |
$dollar = $_GET['dollar'] ?? null; | |
function usdToTurkishLira(float $dollar) { | |
return $dollar * 3.50; | |
} | |
try{ | |
echo usdToTurkishLira("2.5"); | |
} catch(Throwable $e) { | |
echo "Tip yanlı$: {$e->getMessage()}"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment