<?php $year = date("Y"); $yearDoubleBack = date("Y", strtotime($year . " - 2 year")); $YearDoubleAhead = date("Y", strtotime($year . " + 2 year")); echo '$yearDoubleBack => ' . $yearDoubleBack; echo PHP_EOL; echo '$YearDoubleAhead => ' . $YearDoubleAhead;
You have javascript disabled. You will not be able to edit any code.