Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

  2. A.

     totime(“+45”)

    B.

     totime(“+45 days”)

    C.

     strtotime(“+45 days”)

    D.

     strtotime(“-45 days”)

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The strtotime() function and GNU date syntax is used to calculating the date x days from the present date.


Be The First To Comment