- time: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$period = new DatePeriod(
new DateTime(date('Y-m-d', time())),
new DateInterval('P1D'),
new DateTime(date('Y-m-d', strtotime('+2 month', time())))
);
print_r($period);