Return to Snippet

Revision: 7712
at August 11, 2008 22:05 by SeanJA


Updated Code
<p>Copyright &#169; 
<?php echo ($startYear == date('Y'))? (2005) : (2005.' &#045; '.date('Y'))?> SeanJA </p>

Revision: 7711
at August 8, 2008 00:27 by SeanJA


Updated Code
<?php
  $startYear = '2005';
  $thisYear = date('Y');
?>
<p>Copyright &#169; 
<?php echo ($startYear == $thisYear)? 
($startYear) : 
($startYear.' &#045; '.$thisYear);
?> SeanJA </p>

Revision: 7710
at August 8, 2008 00:25 by SeanJA


Initial Code
<?php
  $startYear = '2005';
  $thisYear = date('Y');
?>
<p>Copyright &#169; <?php echo ($startYear == $thisYear)? ($startYear) : ($startYear.' &#045; '.$thisYear);?> <?php bloginfo('name'); ?></p>

Initial URL
http://seanja.com/blog

Initial Description
Starting from here: http://snipplr.com/view/2534/update-copyright-date-in-php/ I made one that is a little more sussinct (sp?)

Initial Title
Copyright Updated

Initial Tags
date

Initial Language
PHP