Q:

Write a PHP script to change month number to month name

0

Write a PHP script to change month number to month name

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
$month_num = 7;
$month_name = date("F", mktime(0, 0, 0, $month_num, 10));
echo $month_name."\n"; 
?>

Sample Output:

July

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now