在包含文件之前检查速度更快,还是将检查放在文件本身中更快?还是没有区别?因此,例如:在包含文件之后或之前进行检查
版本1:
-test1.php-
if ($true) {
include("test2.php");
}
-test2.php-
//long codes
版本2:
-test1.php-
include("test2.php");
-test2.php-
if ($true) {
//long codes
}
那么,是第1版,或快2版?谢谢。