PHP date_parse() Function
PHP Date/Time Reference Manual
Example
Return an associative array containing detailed information about a specified date:
Run Example »
Definition and Usage
The date_parse() function returns an associative array containing detailed information about a specified date.
Syntax
date_parse(
date);
| Parameters | Description |
|---|---|
| date | Required. Specifies the date (in a format accepted by strtotime() ). |
Technical Details
| Return Value: | Returns an associative array containing the parsed date information on success, or FALSE on failure. |
|---|---|
| PHP Version: | 5.2+ |
PHP Date/Time Reference Manual