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