Home > DeveloperSection > Interviews > What is the difference between include() and require()

Posted on    September-26-2016 1:05 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  62  View(s)
Rate this:

Royce Roy
Royce Roy

Total Post:23

Points:115
Posted on    September-26-2016 1:05 AM

When file is not found using include() method, then it will show warning, but program execution will continue whereas in require(), it will cause fatal error and halt the program execution.


Don't want to miss updates? Please click the below button!

Follow MindStick