Auto-updating copyright year in footer with PHP

- 1 min read
PHP logo
PHP logo

Usually we visit some pages in which the year in the footer isn’t the current year. This recurrent problem can be easily solved replacing the current-year-place with this PHP code:

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

Simple as milk.


Share: Link copied to clipboard

Tags:

Where: Home > Technical > Auto-updating copyright year in footer with PHP