(.*?)$tag>|s";
preg_match_all($preg, $string, $tags);
foreach ($tags[1] as $tmpcont){
$tmpval[] = $tmpcont;
}
return $tmpval;
}
$items = untag($xml, 'item');
$html = '';
foreach ($items as $item) {
$title = untag($item, 'title');
$link = untag($item, 'link');
$description = untag($item, 'description');
// $html .= '' . $title[0] . "
\n";
$html .= '' . $title[0] . "
\n";
}
echo $html;
?>