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?

  1. add()
  2. add_date()
  3. date_add()
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.