if statement with 2 else php code example Example: php multi condition if if($var == "abc" || $var == "def" || ...) { echo "true"; }