Is there a way in PHP to print the month name and year in french when we have a number in this format 52013
or 42013
?
I have tried:
$month = 42013;
$monthNr = substr($month, -5, 1);
$timestamp = mktime(0, 0, 0, $monthNr, 1);
$monthName = date('M', $timestamp );
echo $monthName;
but the result is Apr
I'd like to get Avril
2013