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