PHP » GoLang |
login |
register |
about
|
|
getdate(PHP 4, PHP 5, PHP 7) getdate — Get date/time information Description
array getdate
([ int
$timestamp = time()
] )
Returns an associative array containing the date
information of the Parameters
Return Values
Returns an associative array of information related to
the
Examples
Example #1 getdate() example
<?phpThe above example will output something similar to:
Array
(
[seconds] => 40
[minutes] => 58
[hours] => 21
[mday] => 17
[wday] => 2
[mon] => 6
[year] => 2003
[yday] => 167
[weekday] => Tuesday
[month] => June
[0] => 1055901520
)
See Also
|
more
Most requested
more
Last requests
|