Skip to content

getdate()

The getdate() function returns an associative array containing date information.

$date = getdate();
print_r($date);

The array includes:

  • seconds
  • minutes
  • hours
  • day
  • month
  • year