Finding days between 2 unix timestamps in php

前端 未结 8 1157
一整个雨季
一整个雨季 2020-12-13 18:57

Hay, i have a database holding events. There are 2 fields \'start\' and \'end\', these contain timestamps. When an admin enters these dates, they only have the ability to se

8条回答
  •  伪装坚强ぢ
    2020-12-13 19:29

    Try this:

    while($date_start <= $date_end) {
        echo date('M d Y', $date_start) . '
    '; $date_start = $date_start + 86400; }

    Hope this helps !

提交回复
热议问题