title: PHP XOR - how to use with if( )?
body: <p>I wondered if instead of</p>
  
  <pre><code>function edit_save($data, $post_id, $post_type)
  {
      if (($post_type == 'A') OR ($post_type == 'B')) {
  
              // do this
  
      }
  </code></pre>
  
  <p>I could use XOR as below -- but it does this not work...</p>
  
  <pre><code>function edit_save($data, $post_id, $post_type)
  {
      if ($post_type == 'A' XOR 'B') { // pseudo code
  
              // do this
  
      }
  </code></pre>
  
  <p>Any suggestions how to simplify the overall syntax and present the 2 potential options for a variable within a conditional statement?</p>