1.

Suppose 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”)This question was addressed to me in quiz.This intriguing question comes from Date and Timestamp in section File and Session Handling in PHP of PHP

Answer»

Correct answer is (C) strtotime(“+45 days”)

Explanation: The strtotime() function and GNU date SYNTAX is USED to calculating the date X days from the present date.



Discussion

No Comment Found

Related InterviewSolutions