- How do you get the current year with php?
How do you get the current year with php?
Use the date function:
$year = date('Y');
Copyright © 2008-2020, dave Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.