Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<IntlGregorianCalendar::getGregorianChangeIntlGregorianCalendar::setGregorianChange>
^IntlGregorianCalendarLast updated: Mon, 26 Oct 2026

IntlGregorianCalendar::isLeapYear

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

IntlGregorianCalendar::isLeapYear — Determine if the given year is a leap year

Description

Object-oriented style

public function IntlGregorianCalendar::isLeapYear(int $year): bool

Procedural style

function 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.


<IntlGregorianCalendar::getGregorianChangeIntlGregorianCalendar::setGregorianChange>
^IntlGregorianCalendarLast updated: Mon, 26 Oct 2026