Include and Require in PHP Program -:
We can include the content of a file into another file using require and include statement.
- It will show the warning if it fails to find the file and execute the remaining scripts.
- Syntax: include ‘filename’;
- It will show the Fatal error if it fails to find the file and stops the execution.
- Syntax: require ‘filename’;