adplus-dvertising
frame-decoration

Question

Say you want to calculate the date 45 days from the present date which one of the following statement will you use?

a.

totime(“+45”)

b.

totime(“+45 days”)

c.

strtotime(“+45 days”)

d.

strtotime(“-45 days”)

Posted under PHP

Answer: (c).strtotime(“+45 days”)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Say you want to calculate the date 45 days from the present date which one of the following statement will you use?