date_parse_from_format


 

date_parse_from_format

This example informs you about date_parse_from_format function. Let's see how to using date_parse_from_format() in PHP?

This example informs you about date_parse_from_format function. Let's see how to using date_parse_from_format() in PHP?

 

date_parse_from_format

date_parse_from_format function returns associative array with detailed info about given date. It is used for accessing info about given date.

Description on PHP Date Parse Format

array date_parse_from_format ( string $format , string $date )

Parameters of Date Parse Function PHP

format - Format accepted by date() with some extras.

date - String representing the date.

Return Values

It returns associative array with detailed info about given date.

Examples

<?php
$date = "25.8.2009 17:00-03:00";
print_r(date_parse_from_format("j.n.Y H:iP", $date));
?>

Ads