Question d’entretien chez Morgan & Morgan

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

Réponse à la question d'entretien

Utilisateur anonyme

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.