PHP date_parse_from_format() functie
Voorbeeld
Retourneert een geassocieerd array met de gespecificeerde datuminformatie op basis van het gespecificeerde formaat:
<?php print_r(date_parse_from_format("mmddyyyy","05122013")); ?>
Definitie en gebruik
date_parse_from_format() functie retourneert een geassocieerd array met de gespecificeerde datuminformatie op basis van het gespecificeerde formaat.
Syntax
date_parse_from_format(format,date);
Parameters | Beschrijving |
---|---|
format | Verplicht. Bepaal het formaat (date_create_from_format() Geaccepteerde formaten). |
date | Verplicht. Specificeer datum, stringwaarde. |
Technische details
Retournering: | Retourneert een geassocieerd array met de gespecificeerde datuminformatie als het succesvol is. |
---|---|
PHP versie: | 5.3+ |