"1752") & ($year < "2200")) { $y = $year; $a = $y % 19; $b = intval($y / 100); $c = $y % 100; $d = intval($b / 4); $e = $b % 4; $f = intval(($b + 8) / 25); $g = intval(($b - $f + 1) / 3); $h = (19 * $a + $b - $d - $g + 15) % 30; $i = intval($c / 4); $k = $c % 4; $l = (32 + 2 * $e + 2 * $i - $h - $k) % 7; $m = intval(($a + 11 * $h + 22 * $l) / 451); $mn = intval(($h + $l - 7 * $m + 114) / 31); $p = ($h + $l - 7 * $m + 114) % 31; $da = $p + 1; $datetoday=date('Ym'); $dateeaster=$year."0".$mn; if ($dateeaster < $datetoday) { echo ("Easter fell on ".$mn."/".$da."/".$year); } else { if ($dateeaster > $datetoday) { echo ("Easter will fall on ".$mn."/".$da."/".$year); } else echo ("Easter falls on ".$mn."/".$da."/".$year." this year."); } } else{ if (($year > 0) & ($year < "1753")){ echo("Requested year is ".$year.". "); echo("The Gregorian calendar was implemented in the American Colonies in 1752. "); echo("Easter date calculations prior to 1753 will not be attempted."); } else{ echo("This Easter date calculation is not guaranteed to yield the date Christian churches have selected for Easter."); }} ?>