How can I get the current year in php?

Asked 1 years ago, Updated 1 years ago, 114 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.