getdate(): Month of the year (name) : getdate « Development « PHP






getdate(): Month of the year (name)


<?php
$date_array = getdate(); 
foreach ( $date_array as $key => $val ){
    print "$key = $val<br>";
}
print "Today's date: $date_array[month]";
?>

           
       








Related examples in the same category

1.getdate(): Seconds past the minutes
2.getdate(): Minutes past the hour
3.getdate(): Hours of the day
4.getdate(): Day of the month
5.getdate(): Day of the week
6.getdate(): Month of the year
7.getdate(): Year (4 digits)
8.getdate(): Day of year
9.getdate(): Day of the week (name)
10.getdate(): Timestamp
11.Acquiring Date Information with getdate()