Return array from getdate( ) : getdate « Date « PHP






Return array from getdate( )

 
Key             Value
seconds         Seconds
minutes         Minutes
hours           Hours
mday            Day of the month
wday            Day of the week, numeric (Sunday is 0, Saturday is 6)
mon             Month, numeric
year            Year, numeric (4 digits)
yday            Day of the year, numeric (e.g., 299)
weekday         Day of the week, textual, full (e.g., "Friday")
month           Month, textual, full (e.g., "January")
0               Seconds since epoch (what time( ) returns)
  
  








Related examples in the same category

1.Acquiring Date Information with getdate()
2.The Associative Array Returned by getdate()
3.To obtain a number corresponding to the day of the week, use getdate() instead:
4.getdate() with a specific timestamp
5.Finding the month, day, and year