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