Using PHP to dynamically display the current year
Update 20-9-1012: As Kimonoki pointed out in the comments, this can actually be done in one line. There is no need to store the $time variable as the second parameter for date() is optional and defaults to time(). I have updated the snippet below. I am posting this for reference for myself as I find […]
August 22, 2012