php get current year and month code example
Example 1: get current year php
<?php echo date("Y"); ?>
Example 2: php get current year
// get current year using php
<?php echo date("Y"); ?>
Example 3: get current month php
current month
//half name in words
date('M');
//full name in words
date('F');
//number
date('m');