- . 24*60*60 , , 2 / . , 1 . , 25*60*60 , .
mktime(). :
#
$tomorrow_epoch = mktime(0, 0, 0, date("m"), date("d")+1, date("Y"));
#
$tomorrow_date = date("M-d-Y", $tomorrow_epoch);
:
$dates = array();
$now_year = date("Y");
$now_month = date("m");
$now_day = date("d");
for($i = 0; $i < 14; $i++) {
$next_day_epoch = mktime(0, 0, 0, $now_month, $now_day + $i, $now_year);
array_push(
$dates,
date("Y-m-d", $next_day_epoch)
);
}