jdmonthname
返回月的名称。
适用PHP版本:PHP 4, PHP 5, PHP 7, PHP 8
jdmonthname 函数用于返回指定儒略日历月份的英文名称。
string jdmonthname ( int $month [, int $mode = CAL_JULIAN ] )
返回对应月份的英文名称字符串,如 "January", "February" 等。
获取儒略历中第4个月的名称:
echo jdmonthname(4);
输出结果:
April
以上示例调用 jdmonthname 函数传入4作为月份参数,函数返回“April”,即第四个月份的英文名称。