Include and require are both used to insert the content of one PHP file into another PHP file. These two functions are identical. What makes the difference is the way they handle errors.
If an error occurs, the include() function generates a warning, but the script will continue execution. The require() generates a fatal error, and the script will stop. That is why it is recommended to use the require() function instead of include().