メソッドを持つPHPスクリプトtest.phpがあるとします。
<?php
function execute($filename){
//do something
return $output;
}
?>
また、別のPHPスクリプトもありますexecutable.php
<?php
echo "I am executed";
?>
次に、任意のコードを実行して2番目のファイルを実行し、execute
呼び出したときに最初のメソッドからの出力を返すことができますecho execute('executable.php');
か?
皆さんは私が何を意味するのか理解できると思います。