- Output for 5.3.0 - 5.3.19, 5.4.0 - 5.4.9
- Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/sA3Yd on line 12
Process exited with code 255.
<?php
$tests = array(
'2012-12-04',
'12/04/2012',
'12/13/2012',
'13/12/2012',
'04/12/2012'
);
foreach($tests as $test){
$ts = strtotime($test);
echo "$test : $ts : ".date('Y-m-d', $ts)." \n"
}