Easy start and end copyright date

/ Published in: PHP
Save to your folder(s)

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...

Copy this code and paste it in your HTML
  1. &copy; Copyright <?php $year=date('Y');$start='2008';echo( ($year > $start ? "$start - $year" : "$start") ); ?>, All Rights Reserd.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.