Returns an associative array containing details for a specified date:
<?phpprint_r(date_parse("2013-05-01 12:30:45.5"));?>The date_parse() function returns an associative array containing details for a specified day.
date_parse( date);
parameter | describe |
---|---|
date | Required. Specifies the date (format accepted by strtotime()). |
Return value: | Returns an associative array containing the parsed date information if successful, or FALSE if failed. |
---|---|
PHP version: | 5.2+ |