In this article, you will learn how to get detailed information about the date. The date_parse() function returns detailed information such as Day, Month, Year, Hours, Minutes, Seconds, locale, and some other parameters from the specified date.
The result is in the form of an associative array.
What is the syntax of the date_parse() function in PHP?
|date||The date in format that is accepted by strtotime() function – Required|
Examples of the date_parse() function
Example 1. In the following example, we simply parsed a date.
<?php print_r(date_parse("2014-07-11 12:10:45")); ?>