Sr. PHP Programmer Question: Download Senior PHP Programmer PDF

What is the difference between include() Function and require() Function?

Tweet Share WhatsApp

Answer:

If there is any problem in loading a file then the require() function generates a fatal error and halt the execution of the script whereas include() function generates a warning but the script will continue execution.

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
What is the purpse $_PHP_SELF variable?What's the difference between include and require?