PHP Date Exercises : Convert the number to month name
PHP date: Exercise-26 with Solution
Write a PHP script to convert the number to month name.
<?php $month_num = 9; $dateObj = DateTime::createFromFormat('!m', $month_num); $month_name = $dateObj->format('F'); echo $month_name."\n"; ?>
PHP Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?