How to Add a Dynamic Copyright Date in the Footer

How to Add a Dynamic Copyright Date in the Footer

Do websites with outdated copyrights bother you? Don’t let that be you! This snippet will help you keep your copyright updated from year to year. Just set the first date and you’re good to go.:

1
<p>copyright &copy; 2007-<?php echo date('Y'); ?> mywebsite.com</p>