When there is an if statement like:
if (var1 == "test" || var2 == "test")
will PHP stop testing when var1 is already tested true and therefore not test var2? I know C# doesn’t but im not too sure about PHP
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Only if the specific operators short-circuit, which the boolean operators do.