<?php echo date("Y"); ?>
$currentYear=date("Y");//2019
// get current year using php <?php echo date("Y"); ?>
// current year <?php echo date("Y"); ?> // current month <?php echo date("m"); ?> // current day <?php echo date("d"); ?>
Get the current year using PHP: <?php echo date("Y"); ?>