PHP: Acquiring Date Information with getdate()

seconds = 56
minutes = 32
hours = 19
mday = 2
wday = 2
mon = 6
year = 2020
yday = 153
weekday = Tuesday
month = June
0 = 1591151576

Today's date: 6/2/2020

Today's date: Tuesday, June 2th, 2020

<?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>";

?>