Every time I begin converting my designs to CMS-friendly PHP code, I always find myself trying to remember the best way to include the current year in copyright declarations for the footer. Of course it’s simple, and I always feel like an idiot when I eventually recall is.
So I’m putting it up here in the hopes that I won’t forget it in the future, and that others might be saved a trompe through some search listings. Without further adieu…
<?php echo( date( 'Y') ); ?>
Maybe now I’ll be able to remember this simple tidbit.