how to display current session year in php code example Example: how to get the current year in php Get the current year using PHP: <?php echo date("Y"); ?>