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