Phone: 1-855-839-9966

Dynamic Year Copyright Date For PHP

Home » Web Design Updates » Dynamic Year Copyright Date For PHP
Share this article on Facebook Share this on Twitter Stumble this article Share this on Google+ Share this on LinkedIn

Posted by Dave Lauretti on February 19, 2011

This post is mainly for me. I don’t memorize much PHP code so from time to time I have to search the net. In this case I’m going to post the code needed for a dymanic year – meaning the year changes automatically as each year passes – this is mainly, in my case for use in the copyright notice as it is displayed in the footer of this page.

Here is the code to generate the year in PHP:

date("Y")

That’s not too heavy is it? Enjoy!


Get A Call Back


Latest SEO News and Tips