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