include 'include.php tutorial'; //Reference the include.php file
echo a();
//result bb
?>
include.php file is as follows
//Create include.php for other files to call
function a() //Define function a
{
b(); //Call function b
in function a
}
function b() //Define function b
{
c(); //Call function c
in function b
}
function c() //Define function c
{
echo('bb'); //Output a php backtrace
}
a(); //Use function a
?>
Other tips:
When using 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. The include() statement will output a warning if the file is not found. Will terminate script processing