Which of the following statements can be used to add two months to the existing date?
1.$date->modify(‘+2 months’);
2.$date = modify(‘+2 months’);
3.$date = modify(‘2+ months’);
4.$date->modify(‘2+ months’);
Posted Date:-2021-07-09 11:09:51