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