DateTime::createFromImmutable

PHP 7 >= 7.3.0, PHP 8
DateTime::createFromImmutable - Returns new DateTime object encapsulating the given DateTimeImmutable object
Manual
Code Examples

Example #1 Creating a mutable date time object

PHP Version:


Function DateTime::createFromImmutable:

Date and Time Functions

Most used PHP functions