Function to Generate a Copyright Since with PHP
Last Updated on Saturday, 23 February 2013 01:37 Written by Richi González Monday, 25 February 2013 12:00
Hello,
When working with a website, I always try to make things the most automated I can so that I don’t need to be editing them often, that’s why here I present you a function I created that is used to return the years for the copyright notice, for example. It will print the year since the website started and the current year. Keep reading to see what I’m talking about!
1. Copy paste the following function to your functions file or, if you don’t have one, to the top of your PHP file.
Learn More
Recent Comments