$xml = file_get_contents('http://www.cbr.ru/scripts/XML_daily.asp');
$xml = simplexml_load_string($xml);
$arCurrency = array();
foreach ($xml->Valute as $cur){
if(in_array($cur->CharCode,array('USD','EUR'))){
$arCurrency[(string)$cur->CharCode] = str_replace(',','.',(string)$cur->Value);
}
}
Свежие комментарии