Auto Copyright using PHP date function
Do you own a website with a copyright tag that you’re tired of remembering to update every year? Here’s a very simple method of ensuring that your copyright is up-to-date, and you won’t have to worry about it ever again.
Current year only:
© <?php echo date("Y"); ?>
Starting year 2010 to current year:
© 2010-<?php echo date("Y"); ?>