I want someone to write a function that changes footer date yearly automatically | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want someone to write a function that changes footer date yearly automatically

23rd Feb 2016, 6:05 AM
Olanrewaju JamiuTunji
Olanrewaju JamiuTunji - avatar
1 Answer
+ 4
You can use the date function for that: <?php echo date('Y'); ?> This will output the current year.
6th May 2016, 9:22 AM
James Flanders