Web Analytics

PHP easter_days() Function

Calendar FunctionPHP 4+

The easter_days() function returns the number of days after March 21 on which Easter falls for a given year.

Syntax

easter_days(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int

Try It Online

Output
Click Run to execute your code

Related Functions

  • easter_date() - Get Unix timestamp for local midnight on Easter