Return to Snippet

Revision: 41986
at February 25, 2011 19:55 by f6design

Initial Code
Copyright <?php if (date('Y')!='2011'){ echo '2011 - '; } echo date('Y'); ?>

Initial URL

Initial Description
Displays a copyright notice in the form 2011 - 2012, where the first year is hard coded and the second year is dynamically generated. If the start and current year are identical, only the start year is displayed.

Initial Title
Copyright notice with a date range

Initial Tags

Initial Language