(PHP 5 >= 5.5.0, PHP 7, PHP 8)
IntlGregorianCalendar::isLeapYear — Determine if the given year is a leap year
Object-oriented style
Procedural style
Determines whether the given year is a leap year
in the Gregorian calendar.
calendarAn IntlGregorianCalendar instance.
yearThe year to check.