I am using this snippet below, how can i add a second equal statement with an “and” so something like ($onevariable === $othervariable) and ($2variable ===$2othervariable)
if ( $onevariable === $othervariable ) {
require("file.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.
This is fairly straight-forward, it’s just how you already wrote in your question:
See as well Logical Operators (PHP).
Note:
$2variableis not a valid variable name, as well isn’t$2othervariablebecause they start with a number. But I think you get the idea from the example code.