8 lines
135 B
PHP
8 lines
135 B
PHP
|
|
<?php
|
||
|
|
function isLeapYear($year) {
|
||
|
|
if ($year % 100 == 0) {
|
||
|
|
return ($year % 400 == 0);
|
||
|
|
}
|
||
|
|
return ($year % 4 == 0);
|
||
|
|
}
|