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