DatePeriod::__constructCreates a new DatePeriod object Description
public DatePeriod::__construct
( DateTime
$start
, DateInterval $interval
, int $recurrences
[, int $options
] )
public DatePeriod::__construct
( DateTime
$start
, DateInterval $interval
, DateTime $end
[, int $options
] )
public DatePeriod::__construct
( string
$isostr
[, int $options
] )Creates a new DatePeriod object. Parameters
Examples
Example #1 DatePeriod example
<?php The above example will output: 2012-07-01 2012-07-08 2012-07-15 2012-07-22 2012-07-29
Example #2 DatePeriod example with
<?php The above example will output: 2012-07-08 2012-07-15 2012-07-22 2012-07-29 |