New course! Every coder should learn Generative AI!
Try a free lesson0
I want someone to write a function that changes footer date yearly automatically
1 Answer
+ 4
You can use the date function for that:
<?php
echo date('Y');
?>
This will output the current year.