isLeapYear.php
Table of Contents
Functions
- isLeapYear() : bool
- Tells whether a year is a leap year, in the proleptic Gregorian calendar.
Functions
isLeapYear()
Tells whether a year is a leap year, in the proleptic Gregorian calendar.
isLeapYear(int $year) : bool
Pure arithmetic — divisible by 4, except centuries, which must be divisible by 400 — defined for any integer year, including zero and negative ones.
Parameters
- $year : int
-
Any integer year.
Tags
Return values
bool —true if $year is a leap year, false otherwise.