To check whether leap year or not
by raveendran[ Edit ] 2009-10-21 18:10:25
The following code is to check whether given year is leap year or not using date function
function isLeap($yr) {
if(date('L',mktime(0,0,0,1,1,$yr)==1)
return true;
else
return false;
}
?>