title: PHP Flip Boolean Value
body: <p>I have a boolean value that I would like to flip between true and false.  The basic implementation of this is:</p>
  
  <pre><code>if ($my_boolean) {
     $my_boolean = false;
  }
  else {
     $my_boolean = true;
  }
  </code></pre>
  
  <p>Is there a way to simplify this and reduce the number of lines of code?</p>