function и require

smike

Новичок
function и require

index.php
PHP:
<?
	require('function.php');
	echo test();
?>
function.php
PHP:
<?
	function test()
	{
		$result=false;
		require('include.php');
		return $result; 
	}
?>
include.php вариант №1
PHP:
<?
	$result='result';
?>
include.php вариант №2
PHP:
<?
	return 'result';
?>
В перовом варианте index.php выводит 'result', во втором ничего не выводит. Почему?
 
Сверху