Combining If and Include Statements
Posted: Fri Jun 12, 2009 2:21 pm
I am trying to find ways to make my code more efficient. One idea I had was to use If statements followed by including code if the statement is true. However, I wondered whether the PHP code of an include statement is parsed whether or not the If statement that precedes it is true.
For example:
In this event, would othercode.php be parsed if $variable is false?
Thanks!!
For example:
Code: Select all
If ($variable == true) {
include othercode.php;
}Thanks!!