Function __global->cal_days_in_month
Definitions
sources_custom/phpstub.php
- Calculate the number of days in a given month and year.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $calendar | integer | No | No | required parameter | N/A | N/A | The calendar to use (see PHP's CAL_* constants) |
| $month | integer | No | No | required parameter | N/A | N/A | The month number which we are calculating, starting with 1 |
| $year | integer | No | No | required parameter | N/A | N/A | The year which we are calculating |
Returns
- The number of days in the month
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Calculate the number of days in a given month and year.
*
* @param integer $calendar The calendar to use (see PHP's CAL_* constants)
* @param integer $month The month number which we are calculating, starting with 1
* @param integer $year The year which we are calculating
* @return integer The number of days in the month
*/
function cal_days_in_month(int $calendar, int $month, int $year) : int
* Calculate the number of days in a given month and year.
*
* @param integer $calendar The calendar to use (see PHP's CAL_* constants)
* @param integer $month The month number which we are calculating, starting with 1
* @param integer $year The year which we are calculating
* @return integer The number of days in the month
*/
function cal_days_in_month(int $calendar, int $month, int $year) : int

