All the good time. parsing xml file:
$xml = simplexml_load_file('http://www.vesti.ru/vesti.rss'); I interrupt like this:
$count=10; foreach ( $xml->channel->item as $key => $item) { ... код ... $i++; if($i == $count) break; } But it turns out that there are about 50 records in the record file (and, let's say, varied by that side), and it turns out I get only the very first ones, i.e. "old" 10. And how to implement reading it (xml-file) from the end?