HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Date/Time Reference : Return an associative array with detailed information about a specified date, according to the specified format
The date_parse_from_format() function returns an associative array with detailed information about a specified date, according to the specified format.
Parameter | Description |
---|---|
format | Required. Specifies the format (a format accepted by date_create_from_format()) |
date | Required. A string that specifies a date |
Return Value: | Returns an associative array containing information about the specified date on success |
---|---|
PHP Version: | 5.3+ |
PHP Changelog: | PHP 7.2: The [zone] element of the returned array now represents seconds instead of minutes. It also has its sign inverted: -120 is now 7200. |
❮ PHP Date/Time Reference