|
|
To check whether leap year or not - PHP
|
Views : 410
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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;
}
?>
|
|
By raveendran, On - 2009-10-21 |
|
|
|