在包含文件之前檢查速度更快,還是將檢查放在文件本身中更快?還是沒有區別?因此,例如:在包含文件之後或之前進行檢查
版本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版?謝謝。