Phpinclude () calls a simple instance of a file. Includeinclude. php Tutorial; reference include. php file echoa (); result bb? The include. php file is as follows? Php creates include. php for other files to call functiona () definition function a {include 'include. php Tutorial '; // reference the include. php file
Echo ();
// Result bb
?>
The include. php file is as follows:
// Create include. php for calling other files
Function a () // defines function
{
B (); // call function B in function
}
Function B () // defines function B
{
C (); // call function c in function B
}
Function c () // define function c
{
Echo ('BB'); // output a php backtrace
}
A (); // use function
?>
Other tips:
When you use the require () statement to call a file, if the file is not found, The require () statement will output an error message and immediately terminate the script processing. when the include () statement does not find a file, it will output a warning and will not terminate the processing of the script.
Http://www.bkjia.com/PHPjc/632340.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/632340.htmlTechArticleinclude 'include. php Tutorial '; // Reference include. php file echo a (); // result bb? The include. php file is as follows? Php // Create include. php for other files to call function a () // define function {...