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