Update Copyright Statements automatically

Happy New Year! It’s 2006 now, no more 2005. That means you should write 2006 instead of 2005 (who’d have thought? :D).

Did you already update your copyright statements? No? Here is a PHP snippet that saves you time. You never have to care again which year it is. It gives you always the current year. (Those with PHP knowledge will not continue reading, I guess, but nontheless):

<?php echo date('Y'); ?>

Just put this where you want the year (4 digits) to appear.

Published by

Julian Bez

Julian Bez

Julian Bez is a web developer, entrepreneur, and founder from Berlin, Germany.