PHP easter_days() Function
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
Enjoying these tutorials?