- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- simplexml_load_string: documentation ( source)
<?php
$tak = file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml');
echo $tak;
$xml = simplexml_load_string($tak);
$xml->registerXPathNamespace('c', 'http://www.ecb.int/vocabulary/2002-08-01/eurofxref');
$result = $xml->xpath('//c:Cube[@currency="USD"]');
echo var_dump($result);