How to display date in PHP? -


if date 2015-08-15. how display result this:

2015-08-15  2015-08-16  2015-08-17 

i have following code:

$today = date('y-m-d'); $a = "3"; $nextdate = date('y-m-d', strtotime($today . ' + ' . $a . ' days'));  echo $nextdate; 

$date = new datetime();  echo $date->format('y-m-d') . '<br/>';  ($i = 1; $i < 3; $i++) {     $date->modify('+1 day');     echo $date->format('y-m-d') . '<br/>'; } 

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -