小白教程
所有教程
关于
Search
172.71.254.67
172.71.254.67
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func cal cal days in month”的源代码
本页内容
下一节:
Func_cal_cal_from_jd
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:cal_days_in_month()}}[[Category:PHP Calendar 参考手册|1]] = PHP cal_days_in_month() 函数 = [[:Category:PHP Calendar 参考手册]] 针对指定的年份和历法,获取一个月中的天数: <sample title="" desc="" lang="php" hererun="1"> <?php $d=cal_days_in_month(CAL_GREGORIAN,10,2005); echo "There was $d days in October 2005"; ?> </sample> == 定义和用法 == cal_days_in_month() 函数针对指定的年份和历法,返回一个月中的天数。 == 语法 == <pre> cal_days_in_month(calendar,month,year); </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | calendar | 必需。规定要使用的历法。请参阅 [[php ref calendar|PHP Calendar 常量]]。 |- | month | 必需。规定选定历法中的月。 |- | year | 必需。规定选定历法中的年。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 针对给定的年份和历法,返回选定月份中的天数。 |- | PHP 版本: | 4.1+ |} [[:Category:PHP Calendar 参考手册]]
返回至“
Func cal cal days in month
”。
下一节:
Func_cal_cal_from_jd