| | Hello PHP Programmers! Did you know that the date of Easter varies every year, and you can use PHP to determine when it is? This is handy when you are creating a calendar app and want to mark major holidays. Have a great week! | | Easter_date () PHP Function Because Easter always falls on a Sunday, its numeric date changes every year. If we need to dynamically mark this on the calendar, we can use the easter_date () function. This function returns the timestamp for easter of a given year, or if no year is specified, the date of easter in the current year is returned. It is written as: easter_date (optional_year) ; | | | | | | | Related Searches | | | | Featured Articles | | | | | | Sign up for more free newsletters on your favorite topics | | | | You are receiving this newsletter because you subscribed to the About.com PHP / MySQL newsletter. If you wish to change your email address or unsubscribe, please click here. About.com respects your privacy: Our Privacy Policy Contact Information: 1500 Broadway, 6th Floor New York, NY, 10036 © 2012 About.com | | | | Must Reads | | | Follow me on: | | | | Advertisement | |
No comments:
Post a Comment