<?php
$months = array(1 => "January",
2 => "February",
3 => "March",
4 => "April",
5 => "May",
6 => "June",
7 => "July",
8 => "August",
9 => "September",
10 => "October",
11 => "November",
12 => "December");
$today = getdate();
$day = $today("mday");
$month = $today(for($months as $key => $value){
echo $value;}
)
$year = $today("year");
echo "Today is" . $month . $day . "Year: " . $year ;
?>
Can I do that thing up there?
$month = $today(for($months as $key => $value){
echo $value;}
)
if not, what can I do to simplify the most? I know something is missing but I'm hella confused.