PHP date_parse () function
PHP Date / Time Reference Manual
Examples
Returns an associative array containing the details of the specified date:
<?php
print_r(date_parse("2013-05-01 12:30:45.5"));
?>
print_r(date_parse("2013-05-01 12:30:45.5"));
?>
Running instance »
Definition and Usage
date_parse () function returns an associative array details specific date include.
grammar
date_parse( date);
参数 | 描述 |
---|---|
date | 必需。规定日期(格式由 strtotime() 接受)。 |
technical details
return value: | If successful, it returns an associative array containing the date information is parsed, and if it fails it returns FALSE. |
---|---|
PHP version: | 5.2+ |
PHP Date / Time Reference Manual