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:
© <?php echo date(“Y”); ?>
With start year:
© 2008–<?php echo date(“Y”); ?>
