What is Calendar easter days in PHP
In this article I am going to explain about easter days function in PHP.
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
<html>
<body>
<?php
echo(easter_days() . "<br />");
echo(easter_days(2015) . "<br />");
echo(easter_days(2010) . "<br />");
echo(easter_days(2030));
?>
</body>
</html>
|
Output:
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here