What is difference between require_once(), require(), include()?

require() includes and evaluates a specific file, if the file is not found then it shows a Fatal Error.
require_once() includes only the file which is not being included before. It is used to be recommended for the files where you have lots of functions stored.
include() includes the file, even if the file is not found, but it gives a warning to the user to include().

Leave a Reply

Your email address will not be published. Required fields are marked *