0
私はこのphp関数のinclude()の中で変数を返すことは可能ですか?
function test()
{
include("test.php");
}
echo test();
test.phpを
<?php
//echo 'test1';
return 'test2';
?>
echo 'test1'
作品が、return 'test2'
ない作品のような機能を持っています。
私は何も返しません。
あなたは、あなたの関数から何かを返していません。 – tkausl