Q. Which function can be used to include code only once?

  • (A) include()
  • (B) require_once()
  • (C) require()
  • (D) include_once()
πŸ’¬ Discuss
βœ… Correct Answer: (D) include_once()
Explanation: include_once() includes the file only once and avoids redeclaration errors.
Explanation by: Rati Dubey
include_once() includes the file only once and avoids redeclaration errors.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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