|
DateTimeImmutable::createFromMutableReturns new DateTimeImmutable object encapsulating the given DateTime object Description
public static DateTimeImmutable DateTimeImmutable::createFromMutable
( DateTime
$datetime
)Parameters
Examples
Example #1 Creating an immutable date time object
<?php Return ValuesReturns a new DateTimeImmutable instance. |