PHP date_parse() Function
What is a Date Parse Function?
Explanation
The "date_parse()" function is used get the detailed information on a date in a associative array.
Syntax:
array date_parse ( string $date )
In the above syntax "$date" is the date for which detailed information is required.
Example :
<?php
print_r(date_parse("2006-12-12 10:00:00.5"));
?>
Result :
Array
(
[year] => 2006
[month] => 12
[day] => 12
[hour] => 10
[minute] => 0
[second] => 0
[fraction] => 0.5
[warning_count] => 0
[warnings] => Array()
[error_count] => 0
[errors] => Array()
[is_localtime] =>
)
In the above example the date_parse() function will display all the details, for the specified date "2006.12.12" in a detailed associative array.
Note :
(PHP 5 >= 5.2.0)