What is the difference between include() and require() function

What is the difference between include() and require() function

include():

  • Using this method we can include an external file into the current file.
  • If the specified file is not available for inclusion it will give Warning Error

require():

  • Using this method we can include an external file into the current file.
  • If the specified file is not available for inclusion it will give Fatal Error

Share this post