$date->month()
Gets or sets the month value
$date->month(int|null $month = null): int
Parameters
Name | Type | Default |
---|---|---|
$month | int ornull |
null
|
Return type
int
Gets or sets the month value
$date->month(int|null $month = null): int
Name | Type | Default |
---|---|---|
$month | int ornull |
null
|
int