A

Admin • 828.03K Points
Coach

Q. What is the difference between include() and require() in PHP?

  • (A) require() emits a warning, include() emits a fatal error
  • (B) include() emits a warning, require() emits a fatal error
  • (C) No difference
  • (D) Both are deprecated
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
include() gives a warning if the file is missing but script continues; require() stops execution.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.