Which of the following statements can be used to add two months to the existing date?

Which of the following statements can be used to add two months to the existing date? Correct Answer $date->modify(‘+2 months’);

To change the date stored by a DateTime object after it has been created, you use DateTime::modify() with a natural language expression.

Related Questions

Which of the below statements is equivalent to $add += $add ?
Which of the following should be used when you want to add a slide to an existing presentation?
Which of the following should e used when you want to add a slide to an existing presentation?