To check whether leap year or not

by raveendran 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;
}

?>


Tagged in:

1292
like
0
dislike
0
mail
flag

You must LOGIN to add comments