Say you want to calculate the date 45 days from the present date which one of the following statement will you use?
B. totime(“+45 days”)
C. strtotime(“+45 days”)
D. strtotime(“-45 days”)
Answer: Option C
Solution(By Examveda Team)The strtotime() function and GNU date syntax is used to calculating the date x days from the present date.
A. Complete text representation of month
B. Day of month, with leading zero
C. Daylight saving time
D. Day of month, without zeros