Leap Year Determination
<?php function is_leap_year($year) { return ((($y % 4) == 0) && ((($y % 100) != 0) || (($y % 400) == 0))); } foreach (range(1999, 2009) as $year) { echo "<p>{$year} = ", is_leap_year($year) ? 'Leap Year' : 'not', '</p>'; } ?>