Search Results
Alias of DateTimeImmutable::createFromFormat
Aug 6, 2021 · The format string can be a combination of any of the format characters in any order but we would have to provide the input date-time string in the same order. Below programs illustrate the date_create_immutable_from_format () function in PHP: Program 1:
Definition and Usage Thie date_create_immutable_from_format () function an alias of DateTimeImmutable::createFromFormat (). It accepts a time string and format string as parameters, parses the given time string in the specified format and returns a DateTimeImmutable object.
DateTimeImmutable::createFromFormat -- date_create_immutable_from_format — Analyse une heure au format texte selon le format spécifié.
Description The date_create_immutable_from_format of Date / Time for PHP parses a time string according to a specified format.
Valeurs de retour La fonction PHP date_create_immutable_from_format () renvoie un objet DateTime représentant l'heure analysée. En cas d'échec, cette fonction renvoie la valeur booléenne false .
People also ask
What is Thie date_create_immutable_from_format() function?
What is date_create_immutable_from_format() function in PHP?
What is a datetimeimmutable object?
What are the parameters used in a DATETIME function?
Simple usage example of `date_create_immutable_from_format ()`. The `date_create_immutable_from_format` function is an alias of the `DateTimeImmutable::createFromFormat` method in PHP. It creates a new immutable DateTime object based on a specified format and value.
