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