πŸ“Š PHP
Q. Which of the following functions is used to include a file in PHP?
  • (A) require()
  • (B) import()
  • (C) include()
  • (D) Both require() and include()
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both require() and include()

Explanation: PHP provides include() and require() for including files. The difference is that require() produces a fatal error if the file is missing, while include() only produces a warning.

Explanation by: Rati Dubey
PHP provides include() and require() for including files. The difference is that require() produces a fatal error if the file is missing, while include() only produces a warning.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
33
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
92%
Success Rate