我正在阅读this
我不确定twelfth
是否是序数值的最大值。
原因是我想做一些像
这样的事情 $startDate = new \DateTime('twenty-third day of this month');
并且我不确定该月份某一天的序数值的最大限制是什么。
答案 0 :(得分:2)
截至php 7.0.4 twelfth
is the "largest"序号支持:
/* The relative text table. */
static timelib_lookup_table const timelib_reltext_lookup[] = {
{ "first", 0, 1 },
{ "next", 0, 1 },
{ "second", 0, 2 },
{ "third", 0, 3 },
{ "fourth", 0, 4 },
{ "fifth", 0, 5 },
{ "sixth", 0, 6 },
{ "seventh", 0, 7 },
{ "eight", 0, 8 },
{ "eighth", 0, 8 },
{ "ninth", 0, 9 },
{ "tenth", 0, 10 },
{ "eleventh", 0, 11 },
{ "twelfth", 0, 12 },
{ "last", 0, -1 },
{ "previous", 0, -1 },
{ "this", 1, 0 },
{ NULL, 1, 0 }
};