Posted By

Pat64 on 07/22/08


php date copyright

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Easy start and end copyright date

 / Published in: PHP

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

  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
Posted By: juke on July 22, 2008

Wouldn't it be easier to do:

© Copyright - , All Rights Reserved.

You need to login to post a comment.