php get this year and this month code example
Example 1: php get year
<?php echo date("Y"); ?>
Example 2: get month days in php
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);
<?php echo date("Y"); ?>
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);