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