Get an associative array with detailed information about a specified date in PHP

Description

The following code shows how to get an associative array with detailed information about a specified date.

Example



<?php
    print_r(date_parse("2013-05-01 12:30:45.5"));
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone