Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

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

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

they both include a specific file but on require the process exits with a fatal error if the file can't be included, while include statement may still pass and jump to the next step in the execution.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How ereg() function works?How will you access the uploaded file in PHP?