$date->day()
Gets or sets the day value
$date->day(int|null $day = null): int
Parameters
| Name | Type | Default |
|---|---|---|
| $day | intornull |
null
|
Return type
int
This method modifies the existing $date object it is applied to and returns it again.