Morgan & Morgan interview question

What’s the difference between the include() and require() functions?

Interview Answer

Anonymous

9 Oct 2020

include(filepath) imports, reads in the filepath’s content into the current calling file. Their only difference is that the latter will generate a PHP error file not found error if the filepath doesn’t exist.