PHP easter_days()
PHP easter_days()
easter_days() function returns the number of days after March 21, on which Easter falls for a specified year.Syntax of this function:
easter_days(year,method)
year - defines the year to calculate the midnight on Easter from. If the year parameter is omitted, the current year is used. (optional)
method - allows you to calculate Easter dates based on other calendars. E.g. it uses the Gregorian calendar during the years 1582 - 1752 when set to CAL_EASTER_ROMAN.