DateTime::createFromInterface

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

Example #1 Creating a mutable date time object

PHP Version:


Function DateTime::createFromInterface:

Date and Time Functions

Most used PHP functions