(.*?)<\/news>/ms", $data, $allnews); $count = count($allnews[0]); for ($i = $count-1; $i > -1; $i--) { // Для каждой новости $curr_news = $allnews[0][$i]; preg_match_all("/(.*?)<\/id>/ms", $curr_news, $a_id); $id = $a_id[1][0]; preg_match_all("/(.*?)<\/name>/ms", $curr_news, $a_name); $name = $a_name[1][0]; preg_match_all("/(.*?)<\/data>/ms", $curr_news, $a_data); $datap = $a_data[1][0]; preg_match_all("/(.*?)<\/html>/ms", $curr_news, $a_html); $html = $a_html[1][0]; preg_match_all("/

(.*?)<\/p>/ms", $html, $a_htmlp); $htmlp = $a_htmlp[1][0]; $htmlp = strip_tags($htmlp); $prew = substr($htmlp,0,100); $name = iconv("Windows-1251", "UTF-8", $name); $id = iconv("Windows-1251", "UTF-8", $id); $datap = iconv("Windows-1251", "UTF-8", $datap); $prew = iconv("Windows-1251", "UTF-8", $prew); $html = iconv("Windows-1251", "UTF-8", $html); if ($id == $N_ID) { $collect .= "

$datap

$name


$html

"; } } ?>
Новости Сирии

Вернуться к новостям