To check whether leap year or not - PHP Views : 410
Tagged in : PHP
0 0
Send mail
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



    Login to add Comments .