Theeaster_date() function is a built-in function in PHP which returns the Easter date in the year passed as an argument. The current year is taken as default year when no arguments are passed as parameter.
Parameter: The function accepts one optional parameter $year which specifies the year whose Easter date is to be returned. The year can be a number between 1970 and 2037 only. It returns an error message when the year is out of range.
Note: easter_date() relies on your system's C library time functions, rather than using PHP's internal date and time functions. As a consequence, easter_date() uses the TZ environment variable to determine the time zone it should operate in, rather than using PHP's default time zone, which may result in unexpected behaviour when using this function in conjunction with other date functions in PHP.
3a8082e126