PHP Date Exercises : Change month number to month name
PHP date: Exercise-12 with Solution
Write a PHP script to change month number to month name.
<?php $month_num = 7; $month_name = date("F", mktime(0, 0, 0, $month_num, 10)); echo $month_name."\n"; ?>
N.B.: The result may varry for your system date and time.
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?