In the following example, we will find all the Leap Years between 2000 and 2030.
echo"Leap year(s) between $start and $end: <br>";
for($start=$start; $start<=$end; $start++)
if(($start%100==0) && ($start%400!=0))
// Not a leap year
echo"There is no leap year between between the given range";