经测试代码如下:
/**
* 按月份数字返回月份名称
*
* @param
* @author 编程之家 jb51.cc jb51.cc
**/
function Month($NumMonth) {
switch($NumMonth) {
Case "01":
return "January";
break;
Case "02":
return "February";
break;
Case "03":
return "March";
break;
Case "04":
return "April";
break;
Case "05":
return "May";
break;
Case "06":
return "June";
break;
Case "07":
return "July";
break;
Case "08":
return "August";
break;
Case "09":
return "September";
break;
Case "10":
return "October";
break;
Case "11":
return "November";
break;
Case "12":
return "December";
break;
}
}
/*** 代码来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/529150.html