Answers for "php selected date + 3 years example"

PHP
0

loop through months and year php

$start = $month = strtotime('2009-02-01');
$end = strtotime('2011-01-01');
while($month < $end)
{
     echo date('F Y', $month), PHP_EOL;
     $month = strtotime("+1 month", $month);
}
Posted by: Guest on November-19-2020
0

calculate 18 years back date in php

date('Y-m-d', strtotime('18 years ago'))
Posted by: Guest on November-07-2021

Browse Popular Code Answers by Language