- var_dump: documentation ( source)
- time: 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('+3 DAYS')))
);
foreach(array('foo', 'bar') as $a) {
var_dump($a);
foreach ($period as $date) {
var_dump(date('d-m-Y', $date->getTimestamp()));
}
}
?>