PHP Program to Find Year is Leap OR Not

In this post I am going to describe the basic PHP Program which tell us weather the year is Leap or not. Leap year are year which has one extra day and the year which are completely divisible by 4 are leap Year. We will use same logic in the program.

		<title>Leap Year</title>
		<form action="" method='POST'>
		<label for="number">Please Enter a Year</label>
		<input type="text" name="number" value="">
		<input type="submit" value="Done" name="submit">

	$number= $_POST['number'];
		echo "Year is Leap Year";
		echo "Year is not Leap Year";

Program Output:

Stay tuned for the PHP Magento, WordPress and Magento2 latest tutorial and updates, Hope you enjoyed reading, if you need the professional Magento Development / PHP we can help you, just Click on the Link and send me your requirements.

Please Like the Post on Facebook or Google+.