In preparation for the new year, this is a simple but useful PHP snippet for keeping your copyright notice up to date on your blog or Web site.
<?php echo 'Copyright © 2006 – ' . date("Y"); ?>
That will output Copyright © 2006 – 2007, with the “2007″ dynamically updating to the current year.
The HTML entity – just means a dash. You could also do just:
Copyright © <?php echo date("Y"); ?>
…which would output Copyright © 2007 (with the date always being the current year).
It works on WordPress blogs also — just insert the code snippet in footer.php.