Which Of The Following Statements Can Be Used To Add Two Months #189
Which of the following statements can be used to add two months to the existing date?
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP File and Session Handling - PHP Dates and Time - Quiz No.1.
Which of the following statements can be used to add two months to the existing date?
$date->modify(‘+2 months’);
$date = modify(‘+2 months’);
$date = modify(‘2+ months’);
$date->modify(‘2+ months’);