Current local time

Top News

$items = $dom->getElementsByTagName(‘item’);
$data = array();
foreach ($items as $item) {
$data[] = array(
‘title’ => $item->getElementsByTagName(‘title’)->item(0)->textContent,
‘link’ => $item->getElementsByTagName(‘link’) ->item(0)->textContent,
‘description’ => strip_tags($item->getElementsByTagName(‘description’)->item(0)->textContent),
‘date’ => (($date = $item->getElementsByTagName(‘pubDate’)->item(0)) ? $date->textContent : ”)
);
}
?>