<?php
$data_inicio = new DateTime("2018-02-08");
$data_fim = new DateTime("2018-03-10");
$dateInterval = $data_inicio->diff($data_fim);
echo $dateInterval->days;
for($i = $data_inicio; $i < $data_fim; $i = $data_inicio->add(new DateInterval('P1D')) )
{
$datas[] = $i->format("d/m/Y");
}
PD9waHAKCiRkYXRhX2luaWNpbyA9IG5ldyBEYXRlVGltZSgiMjAxOC0wMi0wOCIpOwokZGF0YV9maW0gPSBuZXcgRGF0ZVRpbWUoIjIwMTgtMDMtMTAiKTsKJGRhdGVJbnRlcnZhbCA9ICRkYXRhX2luaWNpby0+ZGlmZigkZGF0YV9maW0pOwplY2hvICRkYXRlSW50ZXJ2YWwtPmRheXM7CiRkYXRhcyA9IGFycmF5KCk7CmZvcigkaSA9ICRkYXRhX2luaWNpbzsgJGkgPCAkZGF0YV9maW07ICRpID0gJGRhdGFfaW5pY2lvLT5hZGQobmV3IERhdGVJbnRlcnZhbCgnUDFEJykpICkKewogICAgJGRhdGFzW10gPSAkaS0+Zm9ybWF0KCJkL20vWSIpOwogICAgCn0KCnByaW50X3IoJGRhdGFzKTs=