1--TEST--
2Test for date_parse_by_format()
3--FILE--
4<?php
5$date = "06/08/04";
6print_r( date_parse_from_format( '!m/d/y', $date ) );
7print_r( date_parse_from_format( '!m*d*y', $date ) );
8?>
9--EXPECT--
10Array
11(
12    [year] => 2004
13    [month] => 6
14    [day] => 8
15    [hour] => 0
16    [minute] => 0
17    [second] => 0
18    [fraction] => 0
19    [warning_count] => 0
20    [warnings] => Array
21        (
22        )
23
24    [error_count] => 0
25    [errors] => Array
26        (
27        )
28
29    [is_localtime] =>
30)
31Array
32(
33    [year] => 2004
34    [month] => 6
35    [day] => 8
36    [hour] => 0
37    [minute] => 0
38    [second] => 0
39    [fraction] => 0
40    [warning_count] => 0
41    [warnings] => Array
42        (
43        )
44
45    [error_count] => 0
46    [errors] => Array
47        (
48        )
49
50    [is_localtime] =>
51)
52