$date_array = getdate(); // no argument passed so today's date will be usedforeach ($date_array as $key => $val) { echo "$key = $val";}?>echo "Today's date: ".$date_array['mon']."/".$date_array['mday']."/".$date_array['year']."";?>
Today's date: ".$date_array['mon']."/".$date_array['mday']."/".$date_array['year']."