To update your copyright notice in PHP all you have to do is to pass “y” to date() function. The following PHP code demonstrates how to use the date() function to generate the current year automatically.
<p>© 2006–<?php echo date('Y'); ?> Faraz Kelhini</p>
© represents @, and #8211 represents dash in html.