PHP: Acquiring Date Information with getdate()

seconds = 58
minutes = 35
hours = 13
mday = 23
wday = 6
mon = 3
year = 2019
yday = 81
weekday = Saturday
month = March
0 = 1553373358

Today's date: 3/23/2019

Today's date: Saturday, March 23th, 2019

<?php
$date_array =  getdate(); // no argument passed so today's date will be used
foreach ( $date_array as $key => $val ) {
    print ( "$key = $val<br />";
}
    
?>
<hr />

<?php
print "Today's date: ".$date_array['mon']."/".$date_array['mday']."/".$date_array['year']."<p>";
print "Today's date: ".$date_array['weekday'].", ".$date_array['month']." ".$date_array['mday']."th, ".$date_array['year']."<p>";

?>