<?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
}
}
}
?>
|