ApexEleven wrote:

I believe that include() returns true|false, so $a would equal true if
the file is included and false if it is not.

If you use *return* on global scope in include file that value will be returned to $a.

-- 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



Reply via email to