DateTimeImmutable::createFromInterface

PHP 8
DateTimeImmutable::createFromInterface - Returns new DateTimeImmutable object encapsulating the given DateTimeInterface object
Manual
Code Examples

Example #1 Creating an immutable date time object

PHP Version:


Function DateTimeImmutable::createFromInterface:

Date and Time Functions

Most used PHP functions