<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>Leap Year Checker</title>
</head>
<body>
<?php
include("LeapYearChecker.class.php");
$LYC = new LeapYearChecker();
$LYC->isLeapYear(1999) == true ? print "Is leap year." : print "Not leap year";
print "<br/>";
$LYC->isLeapYear(2000) == true ? print "Is leap year." : print "Not leap year";
print "<br/>";
$LYC->isLeapYear(2006) == true ? print "Is leap year." : print "Not leap year";
?>
</body>
</html>
|