Even if an included file return a value using return(), it's still sharing the same scope as the caller script!

<?php
$foo = 'aaa';
$bar = include('include.php');
echo($foo.' / '.$bar);
?>

where include.php is
<?php
$foo = 'bbb';
return $foo;
?>

The output is: bbb / bbb
Not: aaa / bbb
----
Manual Page -- [url]http://www.php.net/manual/en/language.variables.scope.php[/url]
Edit Note -- [url]http://master.php.net/manage/user-notes.php?action=edit+33832[/url]
Delete Note -- [url]http://master.php.net/manage/user-notes.php?action=delete+33832&report=yes[/url]
Reject Note -- [url]http://master.php.net/manage/user-notes.php?action=reject+33832&report=yes[/url]