PHP getdate() Function
Example
Return the date/time information of the current local date/time:
<?php print_r(getdate()); ?>
Definition and Usage
The getdate() function returns a timestamp or the date/time information of the current local date/time.
Syntax
getdate(timestamp);
Parameter | Description |
---|---|
timestamp | Optional. Specifies Unix timestamp, integer value. Default is the current local time (time()). |
Technical Details
Return value: |
Return an associative array with information related to the timestamp:
|
---|---|
PHP Version: | 4+ |