I've got an index.php 开发者_运维知识库page, and a lot of includes on it. How can I make an if statement from the first include continue to the last include, without getting an Parse error: syntax error, unexpected $end error.
Thanks!
You can't. You can however put the things inside the if statement in its own file and include it inside the if statement like this:
if(...) {
include 'file1.php';
}
精彩评论