Does anyone know an easy way to convert a integer (1-12) into a month name (January-December)?
I could do it with a switch or an if-else, but I figure there has to be an easier way.
Printable View
Does anyone know an easy way to convert a integer (1-12) into a month name (January-December)?
I could do it with a switch or an if-else, but I figure there has to be an easier way.
Do you really just have an integer?
it would an easy job if you had sth like a timestamp.
Like this:
StephanPHP Code:<?php
$month = date(F);
echo $month;
?>
Sorry, don't have a timestamp, the user is entering a month and year of a report that they want.
Thanks mendhak. You da man :thumb: