Is Leap Year
This algorithm finds is input year a leap year.
function IsLeapYear($year) {
return ($year % 4 == 0 && ($year % 100 != 0 || $year % 400 == 0));
}
Example
$value = IsLeapYear(2016);
Output
true