Pregunta de entrevista de Morgan & Morgan

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

Respuesta de la entrevista

Anónimo

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.