getdate(): Day of the week (name) : getdate « Development « PHP






getdate(): Day of the week (name)


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

           
       








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(): Month of the year (name)
10.getdate(): Timestamp
11.Acquiring Date Information with getdate()