Новости:


(.*?)#s', $contents, $itms, PREG_SET_ORDER); $ii=count($itms); for ($curitem = 0; $curitem < $ii; $curitem++){ preg_match_all('#<(?:date|title)>(.*?)#i', $itms[$curitem][1], $m, PREG_SET_ORDER); if (count($m)>1) echo "

" . $m[0][1] . " " . $m[1][1] . "

"; } ?>