date month syntax to show month name php code example
Example 1: php convert month number to name
$monthNum = 3;
$dateObj = DateTime::createFromFormat('!m', $monthNum);
$monthName = $dateObj->format('F'); // March
Example 2: how to get match date and month in php
date('m',strtotime('2018-06-30' )) == date('m');