DatePeriod::__construct

DatePeriod::__construct - Creates a new DatePeriod object
Manual
Code Examples

Example #1 DatePeriod example

Result: 2012-07-01 2012-07-08 2012-07-15 2012-07-22 2012-07-29
PHP Version:

Example #2 DatePeriod example with <span class='function-constant'>DatePeriod::EXCLUDE_START_DATE</span>

Result: 2012-07-08 2012-07-15 2012-07-22 2012-07-29
PHP Version:


Function DatePeriod::__construct:

Date and Time Functions

Most used PHP functions