Question and answer is powered by AnsPress.io
I am working with PHP and I have placed a month value into another page. In another page, I want to display the month name by month number. How can I get the month name by month number in PHP?
Apply this code:
<?php $month="07"; $month_no = DateTime::createFromFormat('!m', $month); $MonthName=$month_no->format('F'); echo $MonthName; ?>