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