Automatic year display
<p>© <?php
$copyYear = 2008;
$curYear = date('Y');
echo $copyYear . (($copyYear != $curYear) ? '-' . $curYear : '');
?></p>
which has the following result:
© 2008-2012
Comments are closed.
<p>© <?php
$copyYear = 2008;
$curYear = date('Y');
echo $copyYear . (($copyYear != $curYear) ? '-' . $curYear : '');
?></p>
which has the following result:
© 2008-2012
Comments are closed.