Computer Science, asked by Junaod8074, 1 year ago

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 Anonymous
0
_____✨ HEY MATE ✨______

➡️ Option (C) $date = modify(‘2+ months’); is the right answer ✔️

<marquee>✌️ I THINK IT HELPED YOU ✌️
Answered by Avanish010
0
Hi there,

Option C is correct.
Similar questions