When we writing website, we always add a copyright information at the foot of webpage.

How can we add the code so that it will automatically add the current year to the footer?

There are 2 sample, you may choose the one you like and add to your php webpage.

Current year only:

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

 

With start year:

&copy; 2008<?php echo date(“Y”); ?>