get from to year php code example
Example 1: get current year php
<?php echo date("Y"); ?>
Example 2: php grab year from date
$year = date("y",strtotime($mydate));
<?php echo date("Y"); ?>
$year = date("y",strtotime($mydate));