PHP 8.5.0 Beta 1 available for testing

Voting

: seven plus two?
(Example: nine)

The Note You're Voting On

mail at pascalhofmann dot de
8 years ago
When looping over a DatePeriod object, the returned objects always implement DateTimeInterface. The exact type returned depends on how the DatePeriod was created. If $start was a DateTimeImmutable, the objects returned will be of type DateTimeImmutable. If a DateTime object was used, the objects returned will be of type DateTime.

<< Back to user notes page

To Top