It’s available in PHP 4, 5, and 7.
include( string $file );
This construct loads the specified file if that file exists. Unlike
require, if the file does not exist, then a
E_WARNING warning error is thrown.
The path can be omitted. In this case, PHP will search in the same directory for the file.
If the path is provided, whether it’s an absolute or relative path, PHP searches based upon that path.
The code contained within the loaded file will inherit the local variable scope on the line where it’s loaded.
- The file to be loaded.
This function does not return anything.
Once upon a time, there was a developer... You! This is going to be a good story...
More coming soon…keep checking back.