Morgan & Morgan Interview Question

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

Interview Answer

Anonymous

Oct 9, 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.