Home »
MCQs »
PHP MCQs
Which PHP function is used to add days, months, years, hours, minutes, and seconds to a date?
138. Which PHP function is used to add days, months, years, hours, minutes, and seconds to a date?
- add()
- add_date()
- date_add()
- add_dates()
Answer: C) date_add()
Explanation:
The PHP date_add() function is used to add days, months, years, hours, minutes, and seconds to a date.