Which of the following statements can be used to add two months to the existing date?
A.$date->modify(‘+2 months’);
B.$date = modify(‘+2 months’);
C.$date = modify(‘2+ months’);
D.$date->modify(‘2+ months’);
Answers
Answered by
0
_____✨ HEY MATE ✨______
➡️ Option (C) $date = modify(‘2+ months’); is the right answer ✔️
➡️ Option (C) $date = modify(‘2+ months’); is the right answer ✔️
Answered by
0
Hi there,
Option C is correct.
Option C is correct.
Similar questions
English,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago