A simple question that could remove the need for quite a lot of if/else statements.
If, for example, I have such a query:
if ($success1=$db->query('SELECT * FROM `foo`;') || $success2=$db->query('SELECT * FROM `bar`;')) {
...
}
Would it stop checking when the first query is successful or not?
If the first one is true, then it will not need to check anything else in the statement so it will carry on. If not, code like this:
if(isset($var) && $var == 1)Would never work as it would throw up a not defined error. As soon as it sees the first one is false, it stops the rest of the statement.