Sr. PHP Programmer Question:

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

Tweet Share WhatsApp

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 PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
How ereg() function works?How will you access the uploaded file in PHP?