Location: PHPKode > scripts > Leap year checker > leap-year-checker/LeapYearChecker.class.php
<?php
class LeapYearChecker{
	function isLeapYear($year){
		if(($year % 400) == 0){	
			return true;		//Is LeapYear
		}else if(($year % 100) == 0){
			return false;		//Not a LeapYear
		}else if(($year % 4) == 0){
			return true;		//Is LeapYear
		}else{
			return false;		//Not LeapYear
		}
	}
}
?>
Return current item: Leap year checker