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