programming-examples/php/Basics/PHP Program to find whether a year is LEAP year or not.php

14 lines
237 B
PHP
Raw Permalink Normal View History

2019-11-18 14:44:36 +01:00
<?php
if(isset($_POST['submit']))
{
$year=$_POST['year'];
if($year%4==0)
{
$leap="It is a leap year";
}
else
{
$leap="It is not a leap year";
}
}
?>