ApexEleven wrote:
If you use *return* on global scope in include file that value will be returned to $a.I believe that include() returns true|false, so $a would equal true if the file is included and false if it is not.
-- test.php -- $test = "Hello"; return $test; -----
$a = include "test.php"; // $a is "Hello" now
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php