?
Which one of the following statements is true for include_once() and require_once()?
Answer & Solution
Correct Answer:
Option
D
The only difference between the include() and require() statements lies in their handling of errors. A file invoked using require() will bring down your entire process when you meet an error. The same error encountered via a call to include() will merely generate a warning and end execution of the included file.
Join the Discussion
Login to post a comment or share your explanation.
Login