php get year
snippet in php

php get current year

user7753

$currentYear=date("Y");//2019

php get year

user7959

<?php echo date("Y"); ?>