Require function is similar to include() function.But, some difference are in the two functions.
include() function will continue code execution after giving a warning message.
require() function will end the code execution after giving a fatal error message.
<?php require(“test.php”); echo “HI”; ?>
Fatal error: main(): Failed opening required test.php