Dutch PHP Conference 2027

IntlGregorianCalendar::isLeapYear

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

IntlGregorianCalendar::isLeapYearDetermine if the given year is a leap year

说明

面向对象风格

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

过程化风格

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

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

参数

calendar

An IntlGregorianCalendar instance.

year

The year to check.

返回值

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

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top