PHP cal_days_in_month() 函数
PHP 教程
· 2019-01-23 06:14:36
实例
针对指定的年份和历法,获取一个月中的天数:
<?php
$d=cal_days_in_month(CAL_GREGORIAN,10,2005);
echo "There was $d days in October 2005";
?>
$d=cal_days_in_month(CAL_GREGORIAN,10,2005);
echo "There was $d days in October 2005";
?>
定义和用法
cal_days_in_month() 函数针对指定的年份和历法,返回一个月中的天数。
语法
cal_days_in_month(calendar,month,year);
| 参数 | 描述 |
|---|---|
| calendar | 必需。规定要使用的历法。请参阅 PHP Calendar 常量。 |
| month | 必需。规定选定历法中的月。 |
| year | 必需。规定选定历法中的年。 |
技术细节
| 返回值: | 针对给定的年份和历法,返回选定月份中的天数。 |
|---|---|
| PHP 版本: | 4.1+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Web 2.0 Architectures
Duane Nickull、Dion Hinchcliffe、James Governor / O'Reilly / 2009 / USD 34.99
The "Web 2.0" phenomena has become more pervasive than ever before. It is impacting the very fabric of our society and presents opportunities for those with knowledge. The individuals who understand t......一起来看看 《Web 2.0 Architectures》 这本书的介绍吧!