php if multi condition for single variable code example Example: php multi condition if if($var == "abc" || $var == "def" || ...) { echo "true"; }