1. Both are exactly the same
  2. include_once is used for files where as require_once() is not
  3. Both Handle the errors in the same way
  4. Both do not handle the errors in the same way
4 views

1 Answers

Answer: Option 4

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.

4 views

Related Questions