test

{php}echo ‘‘; echo ‘‘; echo ‘ ‘; echo ‘ ‘; echo ‘ Omschrijving‘; echo ‘ http://www.p2000zhz-rr.nl’; echo ‘ Tue, 02 Apr 2013 18:29:39 +0000‘; echo ‘ nl-nl‘; */ $rss1 = file_get_contents(‘http://zwijndrechtsewaard.eu/index.php?format=feed&type=rss’); $rss2 = file_get_contents(‘http://www.drechtnieuws.nl/feed/’); $pattern1 = ‘%\s* \s* (.*)\s*.*\s*\s*.*\s*.*\s* (.*) \s*%im’; preg_match_all($pattern1, $rss1, $array1, PREG_PATTERN_ORDER ); $pattern2 = ‘%\s*? \s*? (.*?)[\s\S]*? (.*?) [\s\S]*?[\s\S]*?%im’; preg_match_all($pattern2, $rss2, $array2, PREG_PATTERN_ORDER ); $matches2=”; //FEED1 for ($i=0; $i< count($array1[0]); $i++) { $matches2[‘title’][$i] = $array1[1][$i]; $matches2[‘pubDate’][$i] = strtotime($array1[4][$i]); $matches2[‘link’][$i] = $array1[2][$i]; $matches2[‘description’][$i] = $array1[3][$i]; } //FEED2 for ($j=0; $j< count($array2[0]); $j++) { $i++; $matches2[‘title’][$i] = $array2[1][$j]; $matches2[‘pubDate’][$i] = strtotime($array2[3][$j]); $matches2[‘link’][$i] = $array2[2][$j]; $matches2[‘description’][$i] = $array2[4][$j]; } //SORTEER DE ARRAY OP DATUM array_multisort($matches2[‘pubDate’], SORT_DESC, SORT_REGULAR); for ($k=0; $k < $i; $k++) { $pattern3 = ‘%‘; echo ‘‘;{/php}