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