Saturday, March 30, 2013

About PHP / MySQL: Easter Date with PHP

If you can't see this email, click here

About

PHP / MySQL

PHP Basics

MySQL Basics

Advanced Skills



From Angela Bradley, your Guide to PHP / MySQL
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) ;
Search Related Topics:  php calendars  finding dates in php  php functions







 


Related Searches
Featured Articles

 

More from About.com

10 Easy Ways to Look Thinner
Don't wait until you've lost those first pounds to make these simple, slimming changes. Read more...>



Create a Shared Photo Stream
Sharing your photo stream with friends and family is a great way to keep in touch. Read more...>




This newsletter is written by:
Angela Bradley
PHP / MySQL Guide
Email Me | My Blog | My Forum
 
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
Learn PHP
Using PHP with MySQL
Learn MySQL
Create Email Forms
PHP Login Script
 
Follow me on:
Facebook Twitter

Advertisement

No comments:

Post a Comment