how to get n days from today in php

Solutions on MaxInterview for how to get n days from today in php by the best coders in the world

showing results for - "how to get n days from today in php"
Giuseppe
28 Mar 2016
1//Simple method how to get the date of tomorrow, yesterday, etc. is to use: 
2$tomorrow = date( "Ymd", strtotime( "+1 days" ) ); 
3$dayaftertomorrow = date( "Ymd", strtotime( "+2 days" ) ); 
4$yesterday = date( "Ymd", strtotime( "-1 days" ) );