php convert month number to name
snippet in php

php convert month number to name

user5996

$monthNum  = 3;
$dateObj   = DateTime::createFromFormat('!m', $monthNum);
$monthName = $dateObj->format('F'); // March