Php Calendar Easter Date Function
What is a easter_date Function?
How does a easter_date Function Work?
Explanation
This function is used to get Unix timestamp for midnight on Easter of a given year.
Syntax:
int easter_date ([ int $year ])
In the above syntax the year should be between the years 1970 and 2037. And the easter is calculated by different algorithms in different calendars.
Example :
<?php
echo date("M-d-Y", easter_date(1999));
echo "<br>";
echo date("M-d-Y", easter_date(2000));
echo "<br>";
echo date("M-d-Y", easter_date(2001));
echo "<br>";
?>
Result :
Apr-04-1999
Apr-23-2000
Apr-15-2001