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