What is Calendar easter days in PHP

In this article I am going to explain about easter days function in PHP.
  • 1648

PHP Calendar easter_days() Function

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

Syntax of  easter_days function

easter_days(year, method)

Parameters in easter_days function

It have two parameters:

Parameter Description
year The year is as positive number.
month The method allows you to calculate dates based on other calendars.

Example of Calendar easter_days function




echo(easter_days() . "<br />");

echo(easter_days(2015) . "<br />");

echo(easter_days(2010) . "<br />");








You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.