Function __global->checkdate
Definitions
sources_custom/phpstub.php
- Validate a gregorian date.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $month | integer | No | No | required parameter | N/A | N/A | The month |
| $day | integer | No | No | required parameter | N/A | N/A | The day |
| $year | integer | No | No | required parameter | N/A | N/A | The year |
Returns
- Whether the date is valid
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Validate a gregorian date.
*
* @param integer $month The month
* @param integer $day The day
* @param integer $year The year
* @return boolean Whether the date is valid
*/
function checkdate(int $month, int $day, int $year) : bool
* Validate a gregorian date.
*
* @param integer $month The month
* @param integer $day The day
* @param integer $year The year
* @return boolean Whether the date is valid
*/
function checkdate(int $month, int $day, int $year) : bool

