$date->month()
Gets or sets the month value
$date->month(int|null $month = null): int<1, 12>
Parameters
| Name | Type | Default |
|---|---|---|
| $month | intornull |
null
|
Return type
int<1, 12>
Gets or sets the month value
$date->month(int|null $month = null): int<1, 12>
| Name | Type | Default |
|---|---|---|
| $month | intornull |
null
|
int<1, 12>