Annotation of embedaddon/php/ext/date/tests/003.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: date suffixes test
3: --FILE--
4: <?php
5: date_default_timezone_set('UTC');
6:
7: for ($i = 0; $i < 32; $i++) {
8: var_dump(date("jS", mktime(0,0,0, 1, $i, 2006)));
9: }
10:
11: echo "Done\n";
12: ?>
13: --EXPECTF--
14: string(4) "31st"
15: string(3) "1st"
16: string(3) "2nd"
17: string(3) "3rd"
18: string(3) "4th"
19: string(3) "5th"
20: string(3) "6th"
21: string(3) "7th"
22: string(3) "8th"
23: string(3) "9th"
24: string(4) "10th"
25: string(4) "11th"
26: string(4) "12th"
27: string(4) "13th"
28: string(4) "14th"
29: string(4) "15th"
30: string(4) "16th"
31: string(4) "17th"
32: string(4) "18th"
33: string(4) "19th"
34: string(4) "20th"
35: string(4) "21st"
36: string(4) "22nd"
37: string(4) "23rd"
38: string(4) "24th"
39: string(4) "25th"
40: string(4) "26th"
41: string(4) "27th"
42: string(4) "28th"
43: string(4) "29th"
44: string(4) "30th"
45: string(4) "31st"
46: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>