HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Calendar Reference : Print the number of days after March 21, that the Easter Day is/was for different years
The easter_days() function returns the number of days after March 21, that the Easter Day is in the given year.
Parameter | Description |
---|---|
year | Optional. Specifies a year as a number. Default is the current year, local time |
method | Optional. 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 |
Return Value: | Returns the number of days after March 21, that the Easter Day is in the given year |
---|---|
PHP Version: | 4+ |
Changelog: | In PHP 4.3 the year parameter became optional and the method parameter was added |
❮ PHP Calendar Reference