İlginiz için teşekkürler eurobank'tan almam lazım yalnız sorunum devam ediyor şöyle ki eurobankın sitesinde örnek vermiş;
<?php
//This is a PHP (4/5) script example on how eurofxref-daily.xml can be parsed 
//Read eurofxref-daily.xml file in memory 
$XMLContent= file("http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml");
//the file is updated daily between 2.15 p.m. and 3.00 p.m. CET
foreach ($XMLContent as $line) {
        if (ereg("currency='([[:alpha:]]+)'",$line,$currencyCode)) {
            if (ereg("rate='([[:graph:]]+)'",$line,$rate)) {
                    //Output the value of 1 EUR for a currency code 
                    echo '1 &euro; = '.$rate[1].' '.$currencyCode[1].'<br />';
                    //--------------------------------------------------
                    // Here you can add your code for inserting
                    // $rate[1] and $currencyCode[1] into your database
                    //--------------------------------------------------
            }
        }
}
?>
Bu bize
1 € = 1.4330 USD
1 € = 134.19 JPY
1 € = 1.9558 BGN
1 € = 25.482 CZK
1 € = 7.4435 DKK
1 € = 15.6466 EEK
1 € = 0.86570 GBP
1 € = 268.59 HUF
1 € = 3.4528 LTL
1 € = 0.6998 LVL
1 € = 4.1068 PLN
1 € = 4.2240 RON
1 € = 10.1432 SEK
1 € = 1.5160 CHF
1 € = 8.5550 NOK
1 € = 7.3083 HRK
1 € = 45.3900 RUB
1 € = 2.1324 TRY
1 € = 1.7197 AUD
1 € = 2.6289 BRL
1 € = 1.5541 CAD
1 € = 9.7891 CNY
1 € = 11.1074 HKD
1 € = 14352.49 IDR
1 € = 69.6870 INR
1 € = 1788.62 KRW
1 € = 18.3954 MXN
1 € = 5.0456 MYR
1 € = 2.1015 NZD
1 € = 69.378 PHP
1 € = 2.0620 SGD
1 € = 48.765 THB
1 € = 11.2261 ZAR
bunu çıkarıyor.
Benim istediğim sadece tek çıktı 1 TRY = 1.4880 (o an hangisiyse).Yani TL için vermesi.
Verilen kodlarda 1.4330 çıkarıyor fakat bu da 1 €'nun değeri.