<?php $is_leap_year = ((($year % 4) == 0) && ((($year % 100) != 0) || (($year %400) == 0))); ?>

Php Leap Year Check