Q. Which function is used to include and execute a PHP file only once?

  • (A) include_once()
  • (B) require()
  • (C) include()
  • (D) require_once()
💬 Discuss
✅ Correct Answer: (A) include_once()
Explanation: include_once() includes and evaluates the file during the execution of the script, and only once.
Explanation by: Mr. Dubey
include_once() includes and evaluates the file during the execution of the script, and only once.

💬 Discussion


📊 Question Analytics

👁️
118
Total Visits
📽️
2 y ago
Published
🎖️
Mr. Dubey
Publisher
📈
95%
Success Rate