Re: dynamic copyright in page footer?

From: Date: Sat, 30 Apr 2011 12:20:44 +0000
Subject: Re: dynamic copyright in page footer?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-312585@lists.php.net to get a copy of this message
On Saturday, April 30, 2011, Simon J Welsh wrote: > I would use something simple like: > if(date('Y') == '2011') { > echo '2011'; > } else { > echo '2011-', date('Y'); > } ... or in one line: echo (date('Y') != '2011' ? '2011-' : '') . date('Y'); However, you might want to change that to: echo '2011-' . date('Y'); at the first review after the start of 2012! HTH, -- Geoff

« previous php.general (#312585) next »