Skip to content

Instantly share code, notes, and snippets.

@yusufusta
Last active September 14, 2019 13:59
Show Gist options
  • Save yusufusta/80016b312f8d5a79c7b3fbc4e336bc45 to your computer and use it in GitHub Desktop.
Save yusufusta/80016b312f8d5a79c7b3fbc4e336bc45 to your computer and use it in GitHub Desktop.
<?php //php 7.0.8
https://tlkur.com/historical/data/USD/TLdaily.json
$time = "1566454080000";
$time2 = str_replace("000","",$time);
$yuzde = 1 - ("5.70" / "5.71" );
if(strstr($yuzde, "-")){
$yuzde2 = substr($yuzde, 0, 6);
echo " Kur Yükselişte ";
} else {
$yuzde2 = substr($yuzde, 0, 5);
echo " Kur Düşüşte ";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment