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"; ?>
Sample Output:
September
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer