$connect_web = simplexml_load_file('http://www.tcmb.gov.tr/kurlar/today.xml');
$usd_buying = $connect_web->Currency[0]->BanknoteBuying;
$usd_selling = $connect_web->Currency[0]->BanknoteSelling;
$dan_buying = $connect_web->Currency[2]->BanknoteBuying;
$dan_selling = $connect_web->Currency[2]->BanknoteSelling;
echo 'USD Alış: '.$usd_buying.'
USD Satış: '.$usd_selling.'
';
echo 'DAN Alış: '.$dan_buying.'
DAN Satış: '.$dan_selling;
//Currency[2] KAPALI PARANTEZ İÇİNDE 2 RAKAMI İLE OYNAYARAK DİĞERLERİNİ DE ALABİLİRSİN
Demo: https://demodetay.com/test.php