$curr_date) {
if ($i < $number_to_display) {
$item = ereg_replace("^.....", "", $item);
print "$item
";
$i++;
}
// today's events
} elseif ($matches[0] == $curr_date) {
if ($i < $number_to_display) {
$item = preg_replace("/\d\d\d\d \d\d \d\d/", "TODAY ", $item);
print "$item
";
$i++;
}
}
}
?>