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:

Previous: Records mundiales varios en Ingeniería Civil
Next: Orientación de las calles de diferentes ciudades

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