<?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(iteration_count($period));
Fatal error: Uncaught Error: Call to undefined function iteration_count() in /in/ofQjh:9
Stack trace:
#0 {main}
thrown in /in/ofQjh on line 9
Process exited with code 255.