PHP ~ Convert month number to String

here is an example to output month by number~

Code:
for($i=1; $i <13; $i++)
{
 print date("F", mktime(0, 0, 0, $i, 1));
}

Output:
-------------------------------------------------------------------------------------
January
February
March
April
May
June
July
August
September
October
November
December
-------------------------------------------------------------------------------------

http://uk.php.net/manual/en/function.date.php

沒有留言:

發佈留言