Well, people would be more inclined to help if you told us what you have tried, or where you are in your code.
But basically....
Open a socket to the page,
read the contents to a variable.
Loop through the variable and grab the currency type
Grab the value as well
Something like....
<?php
$url = "http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml";
$contents = file($url);
$currencies = new Array();
for($i=1; $i<=count($contents); $i++){
if(in_array("currency=", $contents[$i])){
$currency = mb_strcut($contents[$i], 17, 19);
// Gets just the 3 letter currency
$amount = mb_strcut($contents[$i], 28, 32);
// Returns first 5 numbers of amount
$row[$currency] = $amount;
/* Alternate ways
$currencies .= $currency."=>".$amount;
$row[$i] = $currency."=>".$amount;
*/
}
}
?>
That should do it. There are possibly better ways to retrieve stuff between the quotes, but not quite sure how to do it.
~Brett