The title is a little confusing, I know. Basically I want to prevent a variable in one file which I include() into another file form being used. Example:
File1.php:
<?php
$foo = "Bar";
?>
File2.php:
<?php
include("File1.php");
echo $foo;
?>
In the above example File2.php will obviously echo "Bar"; however, I want to prevent this from happening while still being able to access any functions inside File1.php. Ideally variables declared outside of functions should not be accessible when the file is included() ed.