PHP: easter_days() function
The easter_days() function returns the number of days after March 21 on which Easter comes for a given year. The default year is the current year.
(PHP 4 and above)
|year||The year between 1970 to 2037.||Required||Integer|
|method||Calculate easter days based on Gregorian calendar during the year 1582 to 1752 when setting to CAL_EASTER_ROMAN since PHP 4.3.0.||Optional||Integer|
The number of days after March 21st that the Easter Sunday is in the specified year.
Value Type: Integer.
<?php echo(easter_days(1999).'<br>'); echo(easter_days(1251).'<br>'); echo(easter_days(2060)); ?>
14 26 28