Q. Which function is used to get the current date and time in PHP?

  • (A) date_time()
  • (B) now()
  • (C) date()
  • (D) current_time()
πŸ’¬ Discuss
βœ… Correct Answer: (C) date()
Explanation: The date() function formats a local date and time.
Explanation by: Rati Dubey
The date() function formats a local date and time.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
93
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
80%
Success Rate