Return to Snippet

Revision: 34028
at October 16, 2010 06:06 by withinmedianl


Initial Code
&copy; <?php ini_set('date.timezone', 'Europe/Amsterdam');
$startYear = 2008;
$thisYear = date('y'); 
if ($startYear == $thisYear)
{
echo $startYear;
}
else 
{
echo "{$startYear} / {$thisYear}";
}
?> - Company name

Initial URL

                                

Initial Description
echo's:
2008 / 10 - Company name

Initial Title
Dynamic startyear / copyright for footer

Initial Tags
date

Initial Language
PHP