Home > PHP > Function > Calendar > easter_days()

easter_days()

easter_days - Get number of days after March 21 on which Easter falls for a given year

Syntax

int easter_days (int $year, int $method)

Arguments

  • year - The year as a positive number
  • method - Allows to calculate easter dates based on the Gregorian calendar during the years 1582 - 1752 when set to CAL_EASTER_ROMAN. See the calendar constantsfor more valid constants.

Description

Returns the number of days after March 21 on which Easter falls for a given year. If no year is specified, the current year is assumed.

Version

PHP 4, 5

Return value

The number of days after March 21st that the Easter Sunday is in the given year.