Behavior of Files Included Using include : include « Utility Function « PHP
- PHP
- Utility Function
- include
Behavior of Files Included Using include
//File: test.inc
<?php
echo "Inside the included file<BR>";
return "Returned String";
echo "After the return inside the include<BR>";
?>
<?php
echo "Inside of includetest.php<BR>";
$ret = include ('test.inc');
echo "Done including test.inc<BR>";
echo "Value returned was '$ret'";
?>
Related examples in the same category