Answer the question
In order to leave comments, you need to log in
How to parse xml by url?
You need to parse the xml file. I do something like this:
$xml = simplexml_load_file('http://www.cbr.ru/scripts/XML_daily.asp?date_req=02/03/2002');
$xml = new SimpleXMLElement($xml);
Answer the question
In order to leave comments, you need to log in
<?php foreach( $xml->Valute as $node ): ?>
<?php echo $node->Name.'<br>'; ?>
<?php endforeach; ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question