Help! foreach -1?

Hello!
How do I work this out?
I want foreach to do foreach -1, or foreach exept one.

This is the code:
if (isset($events[‘d’][$day])) { foreach ($events[‘d’][$day] as $eid) { ?>

Very grateful for help, my brain is soon boiling over.

What are the contents of events['d'][$day]? Which one do you want to skip?

Here are more of the code. I want the $day to be one less if there are more than one.

$events = $CAL->get($_POST['month'], $_POST['year']);

<?php		for ($day=1; $day<=$daysInMonth; $day++) { 
			  if (isset($events['d'][$day]) ){ foreach ($events['d'][$day] as $eid) { ?>
					//Here is the code to draw events			
				}} 
				</div>
			}
Sponsor our Newsletter | Privacy Policy | Terms of Service