>>894

1<hr>
<?php $a=1; if ($a == "1") exit(); ?>
2<hr>

includeを展開するとこう書いてるのと同じことだ。

↓のようにすればいいんじゃないかな

include test.php;
1<hr>
<?php $a=1;test1() ?>
2<hr>

test.php
<?php
function test1() { if ($a == "1") return();}
?>