<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
  <head>
   <title> getdate.php </title>
   <meta charset="UTF-8">
   <meta name="Author" content="">
   <meta name="Keywords" content="">
   <meta name="Description" content="">
  </head> <body>
 <?php
 $t=time();
 var_dump($t);
 $arry=getdate($t);
 var_dump($arry);
 echo '<hr>';
 $today = getdate();
 print_r($today);
 ?>
  </body>
 </html> 
int 1462358642
 
array
  'seconds' => int 2
  'minutes' => int 44
  'hours' => int 10
  'mday' => int 4
  'wday' => int 3
  'mon' => int 5
  'year' => int 2016
  'yday' => int 124
  'weekday' => string 'Wednesday' (length=9)
  'month' => string 'May' (length=3)
  0 => int 1462358642
 
Array ( [seconds] => 2 [minutes] => 44 [hours] => 10 [mday] => 4 [wday] => 3 [mon] => 5 [year] => 2016 [yday] => 124 [weekday] => Wednesday [month] => May [0] => 1462358642 )