if php 1 line code example Example: one line if statement php echo ($var1 >= $var2) ? 'this is true' : 'this is false';