PHP: Show Current Year & Copyright In Footer

Are you tired of having to change the copyright yearly date on your website every year? If your website is running on PHP, then there’s an easier way to manage that instead of manually typing the date every year.

Make sure you have a file with the .php extension and add this to it:

&copy; <?php echo date("Y"); ?> Copyright.

This will output:

© 2018 Copyright.

Simple and easy trick to add the updated year to your website.