PHPBuilder - Leap year



RSS Twitter
Snippets Calendars Dates

Leap year

by: Nageswara Rao Devarakonda
|
June 27, 2002

Version: 10.0

Type: Function

Category: Calendars/Dates

License: GNU General Public License

Description: Just a short practice run for me. A function that checks for leap year.



<?
function leap($yy)
{
	if($yy%4==0 && $yy%100!=0 || $yy%400==0)
		return true;		//leap year
}
?>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Nageswara Rao Devarakonda

Comment:



Comment:

(Maximum characters: 1200). You have characters left.