Is it possible to stop the inclusion of a file in the middle of a file?
For example, one file would contain:
include(\'home.php\');
In place of break, use return:
return If called from the global scope, then execution of the current script file is ended. If the current script file was include()ed or require()ed, then control is passed back to the calling file.
If called from the global scope, then execution of the current script file is ended. If the current script file was include()ed or require()ed, then control is passed back to the calling file.
include()
require()