Return to Snippet

Revision: 7411
at July 22, 2008 18:06 by Pat64


Initial Code
&copy; Copyright <?php $year=date('Y');$start='2008';echo( ($year > $start ? "$start - $year" : "$start") ); ?>, All Rights Reserd.

Initial URL

                                

Initial Description
Change only $start variable with your start year.
This very simple code will display two dates the next year like this :

© Copyright 2008 - 2009, All Rights Reserved.

and so on...

Initial Title
Easy start and end copyright date

Initial Tags
php, date

Initial Language
PHP