php8.5
Home/ Manual/ intl / intlgregoriancalendar/ IntlGregorianCalendar::isLeapYear

IntlGregorianCalendar::isLeapYear

PHP function Edit on GitHub ✎

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

Determine if the given year is a leap year

Description

Oop

IntlGregorianCalendar::isLeapYear(int $year): bool

Procedural

intlgregcal_is_leap_year(IntlGregorianCalendar $calendar, int $year): bool

Determines whether the given year is a leap year in the Gregorian calendar.

Parameters

calendar

An IntlGregorianCalendar instance.

year

The year to check.

Return Values

Returns true for leap years, false otherwise and on failure.

Source: reference/intl/intlgregoriancalendar/isleapyear.xml · from the official PHP manual (php/doc-en)