<?php $file = @file_get_contents("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml"); preg_match("#<Cube currency='USD' rate='(.*?)'/>#si", $file, $aktar); $dolar = $aktar[1]; echo "1 dolar = $dolar TRY"; // çıktı : 1 dolar = 1.4330 TRY ?>