tisuchi

Recent Posts


Archives


Categories


tisuchi

Spending time to write simplest PHP Code.


change month format in php1

How to convert number to month name in PHP

Here is the code that how can you convert number to month name in PHP. Think of it, you have a month number 01, 02, … that is equivalent to January, February, … $monthNum = 3; $dateObj = DateTime::createFromFormat('!m', $monthNum); $monthName = $dateObj->format('F'); // March Alternative way, you can try this- $monthNum = [...]

tisuchitisuchi