Sr. PHP Programmer Question:
Download Questions PDF

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

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is the purpse $_PHP_SELF variable?What's the difference between include and require?