PHP Include & Require : All about Include vs Require in PHP | Simplilearn
Briefly

When you want to use the same PHP, HTML, or text on different pages of a website, including files comes in handy. Include in PHP helps one build various functions and elements that can be reused through several pages.
If we want to change a code, rather than editing it in all of the files, we can simply edit the source file, and all of the codes will be updated automatically. There are two features that assist us in incorporating files in PHP.
Except in the case of failure, the 'include' and 'require statements' are identical: Include in PHP will only generate an alert (E_WARNING), and the script will proceed. Require will produce a fatal error (E_COMPILE_ERROR) and interrupt the script.
Read at Simplilearn.com
[
]
[
|
]