Skip to content

Add Copyright Symbol and Year Date in PHP

To add a copyright symbol and year date in PHP that updates with the current year, use the code below…

&copy; <?php echo date ('Y'); ?>

A HTML entity is used for the copyright symbol, then you have an opening PHP declaration followed by an echo, which is rendering the year using the date function date (‘Y’);, then the PHP tag is closed.

But really the year does not to be updated as then this moves forward the copyrighted time, you want ti retain from when this was copyrighted – see this.

Leave a Comment

Scroll To Top