Posted By

f6design on 02/25/11


Versions (?)

Copyright notice with a date range

 / Published in: PHP

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.

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

Report this snippet  

You need to login to post a comment.