Echo Current Year
Displays the current year (based on client system’s set date).
1 2 | <?php $date = getdate(); echo $date['year']; ?> |
Can also be used to display values such as day of week, month, hour and others.
Displays the current year (based on client system’s set date).
1 2 | <?php $date = getdate(); echo $date['year']; ?> |
Can also be used to display values such as day of week, month, hour and others.