How do I use PHP to get the current year?
Asked 07 September, 2021
Viewed 1K times
  • 63
Votes

I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky for the year to be outdated.

How would I make the year update automatically with PHP 4 or PHP 5?

30 Answer