<html> <head> <title>Acquiring date information with getdate()</title> </head> <body> <?php $date_array = getdate(); foreach ( $date_array as $key => $val ){ print "$key = $val<br>"; } ?> <hr> <? print "Today's date: $date_array[mday]/$date_array[mon]/$date_array[year]<p>"; ?> </body> </html>