strtotime_basic.phpt [plain text]
--TEST--
strtotime() function - a test to show the difference in behaviour between 'first' and '1', "second" and "2"...
--SKIPIF--
<?php if (!function_exists('strtotime')) echo "SKIP"; ?>
--FILE--
<?php
date_default_timezone_set('UTC');
var_dump(date('Y-m-d', strtotime('1 Monday December 2008')));
var_dump(date('Y-m-d', strtotime('2 Monday December 2008')));
var_dump(date('Y-m-d', strtotime('3 Monday December 2008')));
var_dump(date('Y-m-d', strtotime('first Monday December 2008')));
var_dump(date('Y-m-d', strtotime('second Monday December 2008')));
var_dump(date('Y-m-d', strtotime('third Monday December 2008')));
?>
--EXPECTF--
%string|unicode%(10) "2008-12-01"
%string|unicode%(10) "2008-12-08"
%string|unicode%(10) "2008-12-15"
%string|unicode%(10) "2008-12-08"
%string|unicode%(10) "2008-12-15"
%string|unicode%(10) "2008-12-22"