How can I get the current year in php?

Asked 2 years ago, Updated 2 years ago, 125 views

How can I get the current year in php?

php date

2022-09-22 22:03

1 Answers

<?php echo date("Y"); ?> This will print out the current year.


2022-09-22 22:03

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.