RsD0p9BK
1/14/2016 - 10:08 AM

time.php

// The "+1 week" issue with strtotime

$nextWeek = date('d.m.Y', strtotime('+7 days'));

$nextWeek = strtotime("+1 week");

$nextWeek = time() + (7 * 24 * 60 * 60);
// 7 дней; 24 часа; 60 минут; 60 секунд

// http://php.net/manual/ru/function.time.php
// http://stackoverflow.com/questions/5174789/php-add-7-days-to-date-format-mm-dd-yyyy